git.iko.soy/rowtype-yoga/purescript-backend-optimizer
on main help sign in
33 lines 715 B history raw
1module Snapshot.UncurriedEffectFns01 where
3import Prelude
5import Effect (Effect)
6import Effect.Uncurried (EffectFn3, runEffectFn3)
8type F = EffectFn3 Int Int Int Unit
9type G = Int -> Int
11test1 :: F -> G -> Effect Unit
12test1 f g = runEffectFn3 f (g 1) 2 3
14test2 :: F -> G -> Int -> Effect Unit
15test2 f g = runEffectFn3 f (g 1) 2
17test3 :: F -> G -> Int -> Int -> Effect Unit
18test3 f g = runEffectFn3 f (g 1)
20test4 :: F -> Int -> Int -> Int -> Effect Unit
21test4 f = runEffectFn3 f
23test5 :: F -> G -> Effect Unit
24test5 f g = do
25 runEffectFn3 f (g 1) 2 3
26 runEffectFn3 f (g 1) 2 3
28test6 :: F -> G -> Effect Unit
29test6 f g = do
30 runEffectFn3 f (g 1) 2 3
31 runEffectFn3 f (g 1) 2 3
32 runEffectFn3 f (g 1) 2 3