5update1 = \o -> o { foo = "Foo" }
7update2 :: forall r. { foo :: String | r } -> { foo :: String | r }
8update2 = \o -> o { foo = "Foo" }
10replace = \o -> case o of
11 { foo = "Foo" } -> o { foo = "Bar" }
12 { foo = "Bar" } -> o { bar = "Baz" }
15polyUpdate :: forall a r. { foo :: a | r } -> { foo :: String | r }
16polyUpdate = \o -> o { foo = "Foo" }
18inferPolyUpdate = \o -> o { foo = "Foo" }
20main = Debug.Trace.trace ((update1 {foo: ""}).foo)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list