git.iko.soy/rowtype-yoga/purescript-backend-optimizer
on main help sign in
17 lines 361 B history raw
1module Snapshot.DefaultRulesSemigroup02 where
3import Prelude
5type R = { foo :: String, bar :: Array String }
7test1 :: R -> R -> R
8test1 = append
10test2 :: R -> R -> R
11test2 a b = append a b
13test3 :: R -> R
14test3 = append { foo: "hello", bar: [ "hello" ] }
16test4 :: R
17test4 = append { foo: "hello", bar: [ "hello" ] } { foo: ", World!", bar: [ "World!" ] }