X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FETag.hs;h=c75394f5701e6b8fb92b2382d99e0be1a8787042;hp=cbbe4618460e5a89c7755028cb5effa10422794e;hb=858129cb755aa09da2b7bd758efb8519f2c89103;hpb=5b255535f2c7d2a6d4622ad164b31e63746b906e diff --git a/Network/HTTP/Lucu/ETag.hs b/Network/HTTP/Lucu/ETag.hs index cbbe461..c75394f 100644 --- a/Network/HTTP/Lucu/ETag.hs +++ b/Network/HTTP/Lucu/ETag.hs @@ -19,10 +19,10 @@ import Network.HTTP.Lucu.Utils data ETag = ETag { -- |The weakness flag. Weak tags looks like W\/\"blahblah\" and -- strong tags are like \"blahblah\". - etagIsWeak :: Bool + etagIsWeak :: !Bool -- |An opaque string. Only characters from 0x20 (sp) to 0x7e (~) -- are allowed. - , etagToken :: String + , etagToken :: !String } deriving (Eq) instance Show ETag where @@ -52,7 +52,7 @@ eTagP = do isWeak <- option False (string "W/" >> return True) eTagListP :: Parser [ETag] eTagListP = allowEOF - $ do xs <- listOf eTagP - when (null xs) - $ fail "" - return xs + $! do xs <- listOf eTagP + when (null xs) + $ fail "" + return xs