git.iko.soy
/
Idris-dev
readme
files
commits
refs
on
master
help
sign in
either.idr
commit
da5e25ede1f9f9ba1af0a9af8257c601c257454d
author
Edwin Brady
<eb@cs.st-andrews.ac.uk>
date
Thu 17 Nov 2011, 16:05
(15 years ago)
parent
8d83d07
2 files changed
+9
compare with master
unified
split
lib/either.idr
+8
lib/prelude.idr
+1
lib/either.idr
new file
+8
@@ -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
2
import nat;
3
3
import list;
4
4
import maybe;
5
+
import either;
5
6
import vect;
6
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