@hackage / http-monad

Monad abstraction for HTTP allowing lazy transfer and non-I/O simulation

Latest0.1.1.4

About

Metadata

  • Last updated , by HenningThielemann
  • License BSD-3-Clause
  • Categories Network Development
  • Maintained by: Henning Thielemann <http@henning-thielemann.de>

  • Lottery factor: 0

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    splitbase (off by default)

    Old, monolithic base

    buildtestserver (off by default)

    build a small server for testing lazy download

Readme

This library implements a monad class with various interesting instances:

  • Lazy I/O allows for fetching documents via HTTP on demand

  • Non-I/O allows for testing HTTP communication without any IO action

By using this monad you can implement HTTP communication in a very general way. You may add further functionality by adding custom sub-classes.

We inherit all content data types from the HTTP-4000 package, such as String as well as strict and lazy ByteString.