]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/RFC1123DateTime.hs
The parser now returns unboxed tuple.
[Lucu.git] / Network / HTTP / Lucu / RFC1123DateTime.hs
index 4d7aa1576a1acf308b99c9e6ae4e36b3520f2a8e..2cd06cc9cac7f79f2870e3da1847c57f8e089350 100644 (file)
@@ -65,8 +65,8 @@ formatHTTPDateTime time
 parseHTTPDateTime :: String -> Maybe ClockTime
 parseHTTPDateTime src
     = case parseStr httpDateTime src of
-        (Success ct, _) -> Just ct
-        _               -> Nothing
+        (# Success ct, _ #) -> Just ct
+        (# _         , _ #) -> Nothing
 
 
 httpDateTime :: Parser ClockTime