High-level file download based on URLs

Version on this page:
LTS Haskell 12.22:
Stackage Nightly 2018-12-12:
Latest on Hackage:

See all snapshots download appears in

BSD3 licensed by Don Stewart
Maintained by Sibi Prabakaran

Module documentation for

There are no documented modules for this package.


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.


  • Fix Arch Linux build #15

  • OSX Support added. Thanks to Brian Crowder.
  • Package backported to old versions of ghc. Thanks to @thielema.
  • Add Travis support for GHC 8

  • Fix C code warnings
  • Cleanup in Download.hsc file

  • Fix hackage page rendering

  • Basic test suite added.
Depends on 5 packages:
comments powered byDisqus