on master help sign in
Disambiguate Stream
e24ce58David Christiansen
test/test016/test016.idr+3−3
@@ -2,12 +2,12 @@ module Main
2
2
3%default total
3%default total
4
4
5−codata Stream a = Nil | (::) a (Stream a)
5+codata Stream' a = Nil | (::) a (Stream' a)
6
6
7−countFrom : Int -> Stream Int
7+countFrom : Int -> Stream' Int
8countFrom x = x :: countFrom (x + 1)
8countFrom x = x :: countFrom (x + 1)
9
9
10−take : Nat -> Stream a -> List a
10+take : Nat -> Stream' a -> List a
11take Z _ = []
11take Z _ = []
12take (S n) (x :: xs) = x :: take n xs
12take (S n) (x :: xs) = x :: take n xs
13take n [] = []
13take n [] = []