Stream 0.4 → 0.4.1
raw patch · 2 files changed
+3/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/Stream.hs +2/−2
- Stream.cabal +1/−1
Data/Stream.hs view
@@ -129,7 +129,7 @@ -- | Extract the sequence following the head of the stream. tail :: Stream a -> Stream a-tail ~(Cons _ xs) = xs+tail (Cons _ xs) = xs -- | The 'inits' function takes a stream @xs@ and returns all the -- finite prefixes of @xs@.@@ -221,7 +221,7 @@ -- /Beware/: passing a negative integer as the first argument will -- cause an error. take :: Int -> Stream a -> [a]-take n (Cons x xs)+take n ~(Cons x xs) | n == 0 = [] | n > 0 = x : (take (n - 1) xs) | otherwise = error "Stream.take: negative argument."
Stream.cabal view
@@ -1,5 +1,5 @@ Name: Stream-Version: 0.4+Version: 0.4.1 License: BSD3 License-file: LICENSE Author: Wouter Swierstra <wss@cs.nott.ac.uk>,