Keith Malde writes:

> Apologies for not bringing up heavy theoretical issues, but 
> is there a 
> library routine for retrieveing URLs?  I need to digest some 
> web pages 
> and extract a bit of data from them, and I've munged together 
> a rather 
> naïve XML (and soon HTML) parser[0], but I bet somebody, somewhere has
> a function that lets me read an URL as if it were just another
> file/stream/whatever. 
> 
> So, where are the goods, and how can I get 'em?
> 
> -kzm

The URI library in hslibs contains code for parsing and manipulating URIs
(URI is a generalised URL).  See:

        http://www.haskell.org/ghc/docs/latest/set/sec-uri.html

Cheers,
        Simon

Reply via email to