]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/Chunk.hs
Many bugfixes
[Lucu.git] / Network / HTTP / Lucu / Chunk.hs
index a419464eefbc322989141167b8d4cbf8bcc741db..b48727cc0f364fdbe3037cd759cbbf01476216a4 100644 (file)
@@ -2,9 +2,9 @@
     UnicodeSyntax
   #-}
 module Network.HTTP.Lucu.Chunk
-    ( chunkHeaderP  -- Num a => Parser a
-    , chunkFooterP  -- Parser ()
-    , chunkTrailerP -- Parser Headers
+    ( chunkHeaderP
+    , chunkFooterP
+    , chunkTrailerP
     )
     where
 import Control.Applicative
@@ -21,12 +21,11 @@ chunkHeaderP = do len ← hexadecimal
                   return len
     where
       extension ∷ Parser ()
-      extension = skipMany $
-                  do _ ← char ';'
-                     _ ← token
-                     _ ← char '='
-                     _ ← token <|> quotedStr
-                     return ()
+      extension
+          = skipMany ( char ';' *>
+                       token    *>
+                       char '=' *>
+                       (token <|> quotedStr) )
 
 chunkFooterP ∷ Parser ()
 chunkFooterP = crlf