git.iko.soy
/
Idris-dev
readme
files
commits
refs
on
master
help
sign in
Instance docs: add one test case
540f817
Adam Sandberg Eriksson
12 years ago
test/interactive008/expected
new file
+14
compare with master
unified
split
@@ -0,0 +1,14 @@
1
+
*interactive008> Type class C
2
+
class
3
+
4
+
Parameters:
5
+
t
6
+
7
+
Methods:
8
+
f : C t => t
9
+
member
10
+
11
+
Instances:
12
+
C A
13
+
instance
14
+
*interactive008> Bye bye
test/interactive008/input
new file
+1
@@ -0,0 +1 @@
1
+
:doc C
test/interactive008/interactive008.idr
new file
+13
@@ -0,0 +1,13 @@
1
+
2
+
||| class
3
+
class C (t : Type) where
4
+
||| member
5
+
f : t
6
+
7
+
||| type
8
+
data A : Type where
9
+
i : A
10
+
11
+
||| instance
12
+
instance C A where
13
+
f = i
test/interactive008/run
new file
+2
@@ -0,0 +1,2 @@
1
+
#!/usr/bin/env bash
2
+
idris --nobanner --nocolor interactive008.idr < input
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