Commits

Bryan O'Sullivan committed 71b08a8

Fix up a Show instance.

  • Participants
  • Parent commits e46c20d

Comments (0)

Files changed (1)

File Data/Attoparsec.hs

               | Done !B.ByteString r
 
 instance Show r => Show (Result r) where
-    show (Fail bs stk msg) = "Fail " ++ show bs ++ show stk ++ " " ++ show msg
-    show (Partial _)        = "Partial _"
-    show (Done bs r)        = "Done " ++ show bs ++ " " ++ show r
+    show (Fail bs stk msg) =
+        "Fail " ++ show bs ++ " " ++ show stk ++ " " ++ show msg
+    show (Partial _)       = "Partial _"
+    show (Done bs r)       = "Done " ++ show bs ++ " " ++ show r
 
 feed :: Result r -> B.ByteString -> Result r
 feed f@(Fail _ _ _) _ = f