6import Control.Monad.Eff
7import Control.Monad.Eff.Console
9op1 :: forall a. a -> a -> a
14test1 :: forall n. (Semiring n) => n -> n -> (n -> n -> n) -> n
15test1 x y z = x * y + z x y
17test2 = (\x -> x.foo false) { foo : \_ -> 1.0 }
19test3 = (\x y -> x)(1.0 + 2.0 * (1.0 + 2.0)) (true && (false || false))
25op2 :: Number -> Number -> Number
30test5 = 1.0 %% 2.0 %% 3.0
32test6 = ((\x -> x) `k` 2.0) 3.0
34op3 :: String -> String -> String
35op3 = \s1 s2 -> s1 <> s2
39test7 = "Hello" <+> "World!"
41op4 :: forall a b. (a -> b) -> a -> b
46test8 = foo @@ "Hello World"
48test9 = Other.foo @@ "Hello World"
50test10 = "Hello" `Other.baz` "World"
52op5 :: forall a. Array a -> Array a -> Array a
57test11 = [1.0, 2.0, 0.0] ... [4.0, 5.0, 6.0]
59test14 :: Number -> Number -> Boolean
62test15 :: Number -> Number -> Boolean
63test15 a b = const false $ a `test14` b
69test18 = negate $ negate 1.0
72test19 = negate $ negate (-1.0)
75 let t1 = test1 1.0 2.0 (\x y -> x + y)
86 let t14 = test14 1.0 2.0
87 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