The download package

[Tags:bsd3, library, test]

High-level file download based on URLs

[Skip to Readme]


Versions 0.1, 0.2, 0.3, 0.3.1,, 0.3.2,,,,
Change log
Dependencies base (>=3 && <5), bytestring, feed, tagsoup (>=0.8), xml [details]
License BSD3
Copyright (c) 2008-2011, Don Stewart <>
Author Don Stewart
Maintainer Sibi Prabakaran <>, Don Stewart <>
Stability Unknown
Category Network
Home page
Bug tracker
Source repository head: git clone
Uploaded Thu Mar 10 07:11:53 UTC 2016 by psibi
Distributions LTSHaskell:, NixOS:, Stackage:, Tumbleweed:
Downloads 1829 total (21 in the last 30 days)
1 []
Status Docs pending
Build status unknown [no reports yet]


  • Network
    • Network.Download


Maintainer's Corner

For package maintainers and hackage trustees

Readme for download

Readme for download-


Build Status

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.

Using the library:

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.