git.iko.soy/rowtype-yoga/purescript-backend-optimizer
on main help sign in
18 lines 372 B history raw
1module Snapshot.UncurriedFns01 where
3import Data.Function.Uncurried (Fn3, runFn3)
5type F = Fn3 Int Int Int Int
6type G = Int -> Int
8test1 :: F -> G -> Int
9test1 f g = runFn3 f (g 1) 2 3
11test2 :: F -> G -> Int -> Int
12test2 f g = runFn3 f (g 1) 2
14test3 :: F -> G -> Int -> Int -> Int
15test3 f g = runFn3 f (g 1)
17test4 :: F -> Int -> Int -> Int -> Int
18test4 f = runFn3 f