git.iko.soy
/
Idris-dev
readme
files
commits
refs
on
master
help
sign in
Add test for totality checking of partially applied function
dcaa109
Ahmad Salim Al-Sibahi
9 years ago
test/totality024/expected
new file
+1
compare with master
unified
split
@@ -0,0 +1 @@
1
+
totality023.idr:5:3:Main.ana is possibly not total due to: Main.ana, go
test/totality024/run
new file
+3
@@ -0,0 +1,3 @@
1
+
#!/usr/bin/env bash
2
+
${IDRIS:-idris} $@ totality023.idr --check
3
+
rm -f *.ibc
test/totality024/totality023.idr
new file
+7
@@ -0,0 +1,7 @@
1
+
%default total
2
+
3
+
mutual
4
+
ana : (a -> Maybe a) -> a -> Nat
5
+
ana f = go . f
6
+
where go Nothing = Z
7
+
go (Just x) = S $ ana f 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