git.iko.soy
/
ormolu
readme
files
commits
refs
on
master
help
sign in
Add more function guards tests
c5ed521
Dmitry Ivanov
7 years ago
data/examples/declaration/value/function/guards-out.hs
+13
compare with master
unified
split
@@ -12,3 +12,16 @@ bar x
12
foo x +
12
foo x +
13
foo 20
13
foo 20
14
| otherwise = foo
100
14
| otherwise = foo
100
15
+
16
+
baz
::
Int
->
Int
17
+
baz x | x < 0 = x
18
+
baz x | otherwise = x
19
+
20
+
multi_baz
::
Int
->
Int
21
+
multi_baz x | x < 42 = x
22
+
multi_baz x | x <
0
= x
23
+
multi_baz x | otherwise = x
24
+
25
+
quux
::
Int
->
Int
26
+
quux x | x < 0 = x
27
+
quux x = x
data/examples/declaration/value/function/guards.hs
+13
@@ -10,3 +10,16 @@ bar x
10
| x == 6 = foo x
10
| x == 6 = foo x
11
+ foo 20
11
+ foo 20
12
| otherwise = foo
100
12
| otherwise = foo
100
13
+
14
+
baz
::
Int
->
Int
15
+
baz x | x < 0 = x
16
+
baz x | otherwise = x
17
+
18
+
multi_baz
::
Int
->
Int
19
+
multi_baz x | x < 42 = x
20
+
multi_baz x | x <
0
= x
21
+
multi_baz x | otherwise = x
22
+
23
+
quux
::
Int
->
Int
24
+
quux x | x < 0 = x
25
+
quux x = x
keys
esc 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