download-curl: High-level file download based on URLs

[ bsd3, library, network ] [ Propose Tags ]
Versions 0.0, 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4
Dependencies base (>=3), bytestring, curl, feed, tagsoup (>0.1 && <0.13), xml [details]
License BSD-3-Clause
Copyright (c) 2008, Don Stewart <>
Author Don Stewart
Maintainer Don Stewart <>
Revised Revision 2 made by AdamBergmark at Thu Apr 2 16:14:54 UTC 2015
Category Network
Home page
Uploaded by DonaldStewart at Thu Jul 3 22:48:14 UTC 2008
Distributions Debian:0.1.4, NixOS:0.1.4
Downloads 5029 total (23 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

High-level file download based on URLs

Download web content as strict or lazy bytestringrs, 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.





Build with new smaller base library


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


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees