Skip to content

Commit

Permalink
Updated code for zlib-bindings >= 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
let-def committed Mar 24, 2012
1 parent aaa1eb1 commit 82e68b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Codec/Zlib/Enum.hs
Expand Up @@ -41,7 +41,7 @@ decompress' inf (Continue k) = do
chunk <- liftIO $ finishInflate inf chunk <- liftIO $ finishInflate inf
lift $ runIteratee $ k $ Chunks [chunk] lift $ runIteratee $ k $ Chunks [chunk]
Just bs -> do Just bs -> do
chunks <- liftIO $ withInflateInput inf bs $ callback chunks <- liftIO $ (feedInflate inf bs >>= callback)
step <- lift $ runIteratee $ k $ Chunks chunks step <- lift $ runIteratee $ k $ Chunks chunks
decompress' inf step decompress' inf step
decompress' _ step = return step decompress' _ step = return step
Expand All @@ -64,10 +64,10 @@ compress' def (Continue k) = do
x <- EL.head x <- EL.head
case x of case x of
Nothing -> do Nothing -> do
chunks <- liftIO $ finishDeflate def $ callback chunks <- liftIO $ callback (finishDeflate def)
lift $ runIteratee $ k $ Chunks chunks lift $ runIteratee $ k $ Chunks chunks
Just bs -> do Just bs -> do
chunks <- liftIO $ withDeflateInput def bs $ callback chunks <- liftIO $ (feedDeflate def bs >>= callback)
step <- lift $ runIteratee $ k $ Chunks chunks step <- lift $ runIteratee $ k $ Chunks chunks
compress' def step compress' def step
compress' _ step = return step compress' _ step = return step
Expand Down

0 comments on commit 82e68b0

Please sign in to comment.