diff --git a/attoparsec-iteratee.cabal b/attoparsec-iteratee.cabal
--- a/attoparsec-iteratee.cabal
+++ b/attoparsec-iteratee.cabal
@@ -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
diff --git a/src/Data/Attoparsec/Iteratee.hs b/src/Data/Attoparsec/Iteratee.hs
--- a/src/Data/Attoparsec/Iteratee.hs
+++ b/src/Data/Attoparsec/Iteratee.hs
@@ -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")
