git.iko.soy/rowtype-yoga/purescript-backend-optimizer
on main help sign in
15 lines 256 B history raw
1module Snapshot.EffectBind06 where
3import Prelude
5import Effect (Effect)
7test :: Effect Int -> Effect Int
8test random = do
9 x <- random
10 n <- do
11 x <- random -- Shadowed on purpose
12 y <- random
13 pure $ x + y
14 m <- random
15 pure (x + n - m)