]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/HttpVersion.hs
Exodus to GHC 6.8.1
[Lucu.git] / Network / HTTP / Lucu / HttpVersion.hs
index bd904e8c58b21bf5526620ffb1473d0d6f2af523..e0694f151d97db6a1ff3ddd44fa4c4a0293faf1d 100644 (file)
@@ -8,7 +8,9 @@ module Network.HTTP.Lucu.HttpVersion
     )
     where
 
+import qualified Data.ByteString.Char8 as C8
 import           Network.HTTP.Lucu.Parser
+import           Prelude hiding (min)
 import           System.IO
 
 -- |@'HttpVersion' major minor@ represents \"HTTP\/major.minor\".
@@ -42,7 +44,7 @@ httpVersionP = do string "HTTP/"
 hPutHttpVersion :: Handle -> HttpVersion -> IO ()
 hPutHttpVersion h (HttpVersion maj min)
     = h `seq`
-      do hPutStr  h "HTTP/"
+      do C8.hPut  h (C8.pack "HTTP/")
          hPutStr  h (show maj)
          hPutChar h '.'
          hPutStr  h (show min)
\ No newline at end of file