packages feed

attoparsec-iteratee 0.1.1 → 0.1.2

raw patch · 2 files changed

+6/−3 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Data.Attoparsec.Iteratee: parserToIteratee :: (Monad m) => Parser a -> IterateeG WrappedByteString Word8 m a
+ Data.Attoparsec.Iteratee: parserToIteratee :: Monad m => Parser a -> IterateeG WrappedByteString Word8 m a

Files

attoparsec-iteratee.cabal view
@@ -1,5 +1,5 @@ name:           attoparsec-iteratee-version:        0.1.1+version:        0.1.2 synopsis:       An adapter to convert attoparsec Parsers into blazing-fast Iteratees description:   An adapter to convert attoparsec Parsers into blazing-fast Iteratees
src/Data/Attoparsec/Iteratee.hs view
@@ -39,8 +39,11 @@         return $ Cont (error $ show m)                       (Just $ Err m) -    finalChunk (Atto.Done rest r) =-        return $ Done r (Chunk $ toWrap $ L.fromChunks [rest])+    finalChunk (Atto.Done rest r)+        | S.null rest =+            return $ Done r (EOF Nothing)+        | otherwise =+            return $ Done r (Chunk $ toWrap $ L.fromChunks [rest])      finalChunk (Atto.Partial _) =         return $ Cont (error "parser did not produce a value")