shellmate-extras-0.3.4.1: Extra functionality for shellmate.

Safe HaskellNone
LanguageHaskell2010

Control.Shell.Download

Description

High level functions for downloading files.

Synopsis

Documentation

type URI = String Source #

A Uniform Resource Locator.

fetch :: URI -> Shell String Source #

Download content specified by a URL, returning the content as a String. The content is interpreted as UTF8.

fetchBytes :: URI -> Shell ByteString Source #

Download content specified by a URL, returning the content as a strict ByteString.

fetchFile :: FilePath -> URI -> Shell () Source #

Download content specified by a URL, writing the content to the file specified by the given FilePath.

fetchTags :: URI -> Shell [Tag String] Source #

Download the content as for fetch, but return it as a list of parsed tags using the tagsoup html parser.

fetchXML :: URI -> Shell [Content] Source #

Download the content as for fetch, but return it as parsed XML, using the xml-light parser.

fetchFeed :: URI -> Shell Feed Source #

Download the content as for fetch, but return it as as parsed RSS or Atom content, using the feed library parser.