4import Control.Monad.Eff
5import Control.Monad.Eff.Console
7op1 :: forall a. a -> a -> a
12bar :: String -> String -> String
13bar = \s1 s2 -> s1 <> s2
15test1 :: forall n. (Semiring n) => n -> n -> (n -> n -> n) -> n
16test1 x y z = x * y + z x y
18test2 = (\x -> x.foo false) { foo : \_ -> 1.0 }
20test3 = (\x y -> x)(1.0 + 2.0 * (1.0 + 2.0)) (true && (false || false))
26op2 :: Number -> Number -> Number
31test5 = 1.0 %% 2.0 %% 3.0
33test6 = ((\x -> x) `k` 2.0) 3.0
35op3 :: String -> String -> String
36op3 = \s1 s2 -> s1 <> s2
40test7 = "Hello" <+> "World!"
42op4 :: forall a b. (a -> b) -> a -> b
47foo :: String -> String
50test8 = foo @@ "Hello World"
52test9 = Main.foo @@ "Hello World"
54test10 = "Hello" `Main.bar` "World"
56op5 :: forall a. Array a -> Array a -> Array a
61test11 = [1.0, 2.0, 0.0] ... [4.0, 5.0, 6.0]
63test14 :: Number -> Number -> Boolean
66test15 :: Number -> Number -> Boolean
67test15 a b = const false $ a `test14` b
73test18 = negate $ negate 1.0
76test19 = negate $ negate (-1.0)
79 let t1 = test1 1.0 2.0 (\x y -> x + y)
90 let t14 = test14 1.0 2.0
91 let t15 = test15 1.0 2.0
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