[Haskell] New version of the HTTP module
GK at ninebynine.org
Tue Mar 16 15:17:43 EST 2004
I'm trying to check this out with some software that uses a previous
version (HXml toolbox), and I get the following error from Hugs:
Reading file "..\http\Browser.hs":
ERROR "..\http\Browser.hs":865 - Type error in application
*** Expression : ioAction $ openTCP hst
*** Term : ioAction
*** Type : IO a -> BrowserAction a
*** Does not match : (Int -> IO Connection) -> BrowserAction a
It appears that the signature for "openTCP" has changed...
Previous version (HTTP.hs):
openTCP :: String -> IO Connection
openTCP uri =
Latest version (HTTP.hs):
openTCP :: String -> Int -> IO Connection
openTCP uri port =
But this is referenced by the copy of Browser indicated from your web page:
; c <- ioAction $ openTCP hst
I'm guessing that you also have a modified version of Browser.hs?
At 00:16 16/03/04 +0100, Bjorn Bringert wrote:
>The Haskell HTTP client implementation available from  seems to be
>without a maintainer (if anyone knows how to reach Warrick Gray, who wrote
>it, let me know).
>I include a modified version of this module in the XML-RPC library .
>Changes from the original module include:
> * made it Hugs compatible
> * disabled 100-continue transfers as they caused POST requests to
> HTTP/1.0 servers to stall
> * called it Network.HTTP instead of HTTP
> * added support for URIs with a port number
> * added a simple toggle for HTTP traffic logging
>The modified HTTP module is available from:
>In line with Graham Klyne's suggestion  that a consistent version of
>this module be brought into some "community space", it will probably move
>to the haskell-libs project at SourceForge in the not too distant future.
>Haskell mailing list
>Haskell at haskell.org
More information about the Haskell