The download package

[Tags:bsd3, library, test]

High-level file download based on URLs

Download web content as strict bytestring, strings, HTML tags, XML, RSS or Atom feeds or JSON, via HTTP, FTP or file protocols, using a URL interface.

Importing the library:

 import Network.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.


Versions 0.1, 0.2, 0.3, 0.3.1,, 0.3.2,,,,
Dependencies base (>=3), bytestring, feed, tagsoup, xml [details]
License BSD3
Copyright (c) 2008, Don Stewart <>
Author Don Stewart
Maintainer Don Stewart <>
Stability Unknown
Category Network
Home page
Uploaded Tue Jul 1 20:59:45 UTC 2008 by DonaldStewart
Distributions LTSHaskell:, NixOS:, Stackage:, Tumbleweed:
Downloads 1826 total (20 in the last 30 days)
1 []
Status Docs 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


Maintainer's Corner

For package maintainers and hackage trustees