The download-curl package

[Tags: bsd3, library]

High-level file download based on URLs

Download web content as strict bytestring, strings, HTML tags, XML, RSS or Atom feeds or JSON, using the curl network library.

Importing the library:

 import Network.Curl.Download

Loading a webpage as a ByteString:

 doc  <- openURI ""

Loading from a file:

 doc  <- openURI "file:///tmp/A.hs"

Loading a HTML page as a list of tags:

 tags <- openAsTags ""

Loading a HTML page as XML:

 tags <- openAsXML ""

Loading an RSS or Atom feed:

 feed <- openAsFeed ""

These data types can the be processed further with the XML, Feed and TagSoup libraries.


Versions0.0, 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4
Change logNone available
Dependenciesbase (>=3), bytestring, curl, feed, tagsoup (>0.1 && <0.13), xml [details]
Copyright(c) 2008, Don Stewart <>
AuthorDon Stewart
MaintainerDon Stewart <>
Home page
UploadedWed Jul 2 00:26:00 UTC 2008 by DonaldStewart
UpdatedThu Apr 2 16:15:08 UTC 2015 by AdamBergmark to revision 2
DistributionsDebian:0.1.4, NixOS:0.1.4
Downloads2878 total (14 in last 30 days)
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]




small_baseBuild with new smaller base libraryEnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees