shellmate-0.2.1: Simple interface for shell scripting in Haskell.

Safe HaskellNone
LanguageHaskell98

Control.Shell.Download

Description

Shellmate wrapper for download-curl.

Synopsis

Documentation

type URI = String Source

A Uniform Resource Locator.

fetch :: URI -> Shell String Source

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

fetchBytes :: URI -> Shell ByteString Source

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

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

Download content specified by a url using curl, 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.