Stream 0.2 → 0.2.1
raw patch · 2 files changed
+4/−4 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.Stream: (!!) :: Int -> Stream a -> a
+ Data.Stream: (!!) :: Stream a -> Int -> a
Files
- Data/Stream.hs +3/−3
- Stream.cabal +1/−1
Data/Stream.hs view
@@ -171,10 +171,10 @@ -- -- /Beware/: passing a negative integer as the first argument will cause -- an error.-(!!) :: Int -> Stream a -> a-(!!) n (Cons x xs)+(!!) :: Stream a -> Int -> a+(!!) (Cons x xs) n | n == 0 = x- | n > 0 = (!!) (n - 1) xs+ | n > 0 = xs !! (n - 1) | otherwise = error "Stream.!! negative argument" -- | The 'zip' function takes two streams and returns a list of
Stream.cabal view
@@ -1,5 +1,5 @@ Name: Stream-Version: 0.2+Version: 0.2.1 License: BSD3 License-file: LICENSE Author: Wouter Swierstra