3import Prelude hiding (add)
5data Id = Id forall a. a -> a
7runId = \id a -> case id of
10data Nat = Nat forall r. r -> (r -> r) -> r
12runNat = \nat -> case nat of
13 Nat f -> f 0.0 (\n -> n + 1.0)
15zero' = Nat (\zero' _ -> zero')
18 Nat f -> Nat (\zero' succ -> succ (f zero' succ))
20add = \n m -> case n of
22 Nat g -> Nat (\zero' succ -> g (f zero' succ) succ)
27fourNumber = runNat four
29main = Control.Monad.Eff.Console.log "Done'"
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