download-curl-0.1: High-level file download based on URLsSource codeContentsIndex
Network.Curl.Download.Lazy
Portabilityposix
Stabilityprovisional
MaintainerDon Stewart <dons@galois.com>
Contents
The basic lazy interface to network content
Description

A binding to curl, an efficient, high level library for retrieving files using Uniform Resource Locators (URLs).

Content may be retrieved as a lazy ByteString.

Error handling is encapsulated in the Either type.

Synopsis
openLazyURI :: String -> IO (Either String ByteString)
The basic lazy interface to network content
openLazyURI :: String -> IO (Either String ByteString)Source

Download content specified by a url using curl, returning the content as a lazy ByteString.

If an error occurs, Left is returned, with a protocol-specific error string.

Examples:

 openURI "http://haskell.org"
Produced by Haddock version 2.4.2