git.iko.soy
/
Idris-dev
readme
files
commits
refs
on
master
help
sign in
either.idr
da5e25e
Edwin Brady
15 years ago
lib/either.idr
new file
+8
compare with master
unified
split
@@ -0,0 +1,8 @@
1
+
import builtins;
2
+
3
+
data Either a b = Left a | Right b;
4
+
5
+
choose : (b : Bool) -> Either (so b) (so (not b));
6
+
choose True = Left oh;
7
+
choose False = Right oh;
8
+
lib/prelude.idr
+1
@@ -2,6 +2,7 @@ import builtins;
2
import nat;
2
import nat;
3
import list;
3
import list;
4
import maybe;
4
import maybe;
5
+
import either;
5
import vect;
6
import vect;
6
import io;
7
import io;
7
8
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