Permalink
Browse files

add <:> and version up to 0.0.2.0

  • Loading branch information...
1 parent eb9c003 commit beec611b36aea3e7e92790db919c74c27b281b88 @wavewave committed Apr 11, 2011
Showing with 8 additions and 1 deletion.
  1. +1 −1 iteratee-util.cabal
  2. +7 −0 src/Data/Iteratee/Util.hs
View
@@ -1,5 +1,5 @@
Name: iteratee-util
-Version: 0.0.1.2
+Version: 0.0.2.0
Synopsis: utility functions for iteratee library
Description: utility functions for iteratee library
License: BSD3
@@ -63,6 +63,13 @@ count = Iter.length
(<+>) = Iter.enumPair
+(<:>) :: (Monad m) => Iter.Iteratee [s] m a -> Iter.Iteratee [s] m [a]
+ -> Iter.Iteratee [s] m [a]
+(<:>) iter1 iter2 = do
+ (x,xs) <- Iter.enumPair iter1 iter2
+ return (x:xs)
+
+
jn = Iter.joinI
filtre = Iter.filter

0 comments on commit beec611

Please sign in to comment.