Alistair, Neil, Brad, Yitzchak, Bjorn,<br><br>Thanks all for your help.<br><br>-Greg<br><br><br><div><span class="gmail_quote">On 1/19/07, <b class="gmail_sendername">Björn Bringert</b> <<a href="mailto:email@example.com">
firstname.lastname@example.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Greg Fitzgerald wrote:<br>> I'd like to write a very simple Haskell script that when given a URL,
<br>> looks up the page, and returns a string of HTML. I don't see an HTTP<br>> library in the standard libs, and the one in Hackage requires Windows<br>> machines have GHC and MinGW to be installed and in the PATH.
<br>><br>> Is there a simple way to get the contents of a webpage using Haskell on<br>> a Windows box?<br><br>I agree with other posters that the Network.HTTP API should be made more<br>easy to use. I will happily accept patches for this.
<br><br>The HTTP package homepage (<a href="http://www.haskell.org/http/">http://www.haskell.org/http/</a>) mentioned the<br>GHC and MinGW requirements you cite, but those seemed to be out of date.<br>You should be able to use plain Cabal to install the HTTP package for
<br>any recent GHC or Hugs.<br><br>/Björn<br></blockquote></div><br>