git.iko.soy
/
Idris-dev
readme
files
commits
refs
on
master
help
sign in
Update for totality warnings
0cdef7f
David Raymond Christiansen
12 years ago
test/totality005/expected
−1
compare with master
unified
split
@@ -1,2 +1 @@
1
−
totality005.idr:6:1:Main.fib is possibly not total due to recursive path Main.fib
2
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377]
1
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377]
test/totality005/totality005.idr
+2
−1
@@ -2,8 +2,9 @@
2
zipWithS : (f : a -> b -> c) -> Stream a -> Stream b -> Stream c
2
zipWithS : (f : a -> b -> c) -> Stream a -> Stream b -> Stream c
3
zipWithS f (x :: xs) (y :: ys) = f x y :: zipWithS f xs ys
3
zipWithS f (x :: xs) (y :: ys) = f x y :: zipWithS f xs ys
4
4
5
+
partial
5
fib : Stream Nat
6
fib : Stream Nat
6
fib = 0 :: zipWithS (+) fib (1 :: fib)
7
fib = 0 :: zipWithS (+) fib (1 :: fib)
7
8
8
−
main : IO ()
9
+
partial
main : IO ()
9
main = print (take 15 fib)
10
main = print (take 15 fib)
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