]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/HttpVersion.hs
Supplession of unneeded imports
[Lucu.git] / Network / HTTP / Lucu / HttpVersion.hs
index 38d0e5b81ad49767621098c06bb499f347bae175..e1ed0f38024fd9836629c84eee5d9bef20fd46cc 100644 (file)
@@ -8,13 +8,11 @@ module Network.HTTP.Lucu.HttpVersion
     )
     where
 
-import qualified Data.ByteString.Lazy.Char8 as B
-import           Data.ByteString.Lazy.Char8 (ByteString)
 import           Network.HTTP.Lucu.Parser
 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
@@ -39,7 +37,8 @@ httpVersionP = do string "HTTP/"
 
 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