git.iko.soy/rowtype-yoga/purescript-native
on 28fa718 help sign in
20 lines 379 B history raw
1module Objects where
3 import Prelude
5 test = \x -> x.foo + x.bar + 1
7 append = \o -> { foo: o.foo, bar: 1 }
9 apTest = append({foo : "Foo", baz: "Baz"})
11 f = (\a -> a.b.c) { b: { c: 1, d: "Hello" }, e: "World" }
13 g = (\a -> a.f { x: 1, y: "y" }) { f: \o -> o.x + 1 }
15 typed :: { foo :: Number }
16 typed = { foo: 0 }
18module Main where
20main = Trace.trace "Done"