A good solution for the Windows world would be to wrap the URL moniker once.
Then there would exists a solution for all protcols addressable in an URL
with an implementation on Windows (i.e. file:  http: ftp: res: ...).





> -----Original Message-----
> From: Sigbjorn Finne [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 22, 2000 2:22 PM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: read from URL
> 
> 
> 
> Sebastian Schulz <[EMAIL PROTECTED]> writes:
> > 
> > Is it possible to read a file from a webaddress? Something like:
> > 
> > ...  do file <- readFile_ "http://..."
> >         dosomething file
> > ...
> > 
> 
> Attached is a from-the-hip Haskell module I wrote sometime ago
> to do this. It provides the action:
> 
>    getURL :: String{-the URL-} -> IO String
> 
> As is, it only supports the http:// protocol, but hopefully a
> useful starting point. The module depends on hslibs libraries,
> which effectively means that it is currently GHC dependent(?)
> 
> hth
> --sigbjorn
> 
> 
> 

Reply via email to