Skip to content

Commit

Permalink
Don't use liftA2
Browse files Browse the repository at this point in the history
  • Loading branch information
axman6 committed May 3, 2024
1 parent 5c13e67 commit 9780cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sample2 :: U.Vector (Double,Double)
#if MIN_VERSION_mwc_random(0,15,0)
sample2 = runST $ do
g <- create
U.replicateM 10000 (liftA2 (,) (uniformRM (-10.0,10.0) g) (uniformRM (0.2,5.0) g))
U.replicateM 10000 ((,) <$> (uniformRM (-10.0,10.0) g) <*> (uniformRM (0.2,5.0) g))
#else
sample2 = runST $ flip uniformVector 10000 =<< create
#endif
Expand Down

0 comments on commit 9780cfb

Please sign in to comment.