4import Control.Monad.Eff.Console (log)
6update1 = \o -> o { foo = "Foo" }
8update2 :: forall r. { foo :: String | r } -> { foo :: String | r }
9update2 = \o -> o { foo = "Foo" }
11replace = \o -> case o of
12 { foo = "Foo" } -> o { foo = "Bar" }
13 { foo = "Bar" } -> o { bar = "Baz" }
16polyUpdate :: forall a r. { foo :: a | r } -> { foo :: String | r }
17polyUpdate = \o -> o { foo = "Foo" }
19inferPolyUpdate = \o -> o { foo = "Foo" }
22 log ((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