homepage: https://github.com/alexmingoia/twain#readme
changelog-type: markdown
hash: 2a902c8053836d3672447a35f10ae622c778bbe7696e92c845550914f859865b
test-bench-deps: {}
maintainer: alex@alexmingoia.com
synopsis: Tiny web application framework for WAI.
changelog: |
  # Change Log

  ## 1.0.0.0 [2021-05-11]

  - Initial release.
basic-deps:
  warp: '>=3.2 && <3.4'
  cookie: '>=0.4 && <0.6'
  either: '>=5.0 && <5.1'
  bytestring: '>=0.10 && <0.11'
  wai: '>=3.2 && <3.3'
  case-insensitive: '>=1.2 && <1.3'
  base: '>=4.7 && <5'
  time: '>=1.8 && <1.9.9'
  text: '>=1.2.3 && <1.3'
  wai-extra: '>=3.0 && <3.2'
  transformers: '>=0.5.6 && <0.6'
  http-types: '>=0.12 && <0.13'
  aeson: '>=1.4 && <1.7'
all-versions:
- 1.0.0.0
author: Alex Mingoia
latest: 1.0.0.0
description-type: markdown
description: |
  # Twain

  [![Hackage](https://img.shields.io/hackage/v/twain.svg?style=flat)](http://hackage.haskell.org/package/twain)
  ![BSD3 License](http://img.shields.io/badge/license-BSD3-brightgreen.svg)

  Twain is a tiny web application framework for [WAI](http://hackage.haskell.org/package/wai).

  - Simple routing with path captures.
  - Parameter parsing of cookies, path, query, and body.
  - Compose responses from an app environment using a reader-like monad.
  - Helpers for redirects, headers, status codes.
  - Routes decompose into WAI middleware.

  ```haskell
  import Web.Twain

  main :: IO ()
  main = do
    twain 8080 "my app" $ do
      get "/" $ do
        send $ html "Hello, World!"
  ```
license-name: BSD-3-Clause

Update from Hackage at 2021-05-11T10:24:34Z
Update from Hackage at 2021-05-11T10:24:34Z
