]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/HttpVersion.hs
Suppress unused-do-bind warnings which GHC 6.12.1 emits
[Lucu.git] / Network / HTTP / Lucu / HttpVersion.hs
index 0f83bab46962919b2e7f5c183648813fd62ebdf5..ca25640a768c31e9f98dee79f29cee615dd72a0e 100644 (file)
@@ -33,13 +33,11 @@ httpVersionP :: Parser HttpVersion
 httpVersionP = string "HTTP/"
                >>
                -- 頻出するので高速化
-               choice [ do string "1.0"
-                           return $ HttpVersion 1 0
-                      , do string "1.1"
-                           return $ HttpVersion 1 1
+               choice [ string "1.0" >> return (HttpVersion 1 0)
+                      , string "1.1" >> return (HttpVersion 1 1)
                         -- 一般の場合
                       , do major <- many1 digit
-                           char '.'
+                           _     <- char '.'
                            minor <- many1 digit
                            return $ HttpVersion (read major) (read minor)
                       ]