import System.IO
-- |@'HttpVersion' major minor@ represents \"HTTP\/major.minor\".
-data HttpVersion = HttpVersion Int Int
+data HttpVersion = HttpVersion !Int !Int
deriving (Eq)
instance Show HttpVersion where
hPutHttpVersion :: Handle -> HttpVersion -> IO ()
hPutHttpVersion h (HttpVersion maj min)
- = do hPutStr h "HTTP/"
+ = h `seq`
+ do hPutStr h "HTTP/"
hPutStr h (show maj)
hPutChar h '.'
hPutStr h (show min)
\ No newline at end of file