apiary-0.4.3.1: apiary.cabal
name: apiary
version: 0.4.3.1
x-revision: 1
synopsis: Simple web framework inspired by scotty.
description:
Simple web framework inspired by scotty.
.
@
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}
.
import Web.Apiary
import Network.Wai.Handler.Warp
import qualified Data.ByteString.Lazy.Char8 as L
.
main :: IO ()
main = run 3000 . runApiary def $ do
  [capture|/:Int|] . queryFirst' "name" . stdMethod GET . action $ \\age name -> do
      guard (age >= 18)
      contentType "text/html"
      lbs . L.concat $ ["<h1>Hello, ", L.fromStrict name, "!</h1>"]
@
.
* Nestable route handling(ApiaryT Monad; capture, stdMethod and more.).
.
* type safe route filter.
.
full example & tutorial: <https://github.com/philopon/apiary/blob/master/examples/main.lhs>
license: MIT
license-file: LICENSE
author: HirotomoMoriwaki<philopon.dependence@gmail.com>
maintainer: HirotomoMoriwaki<philopon.dependence@gmail.com>
Homepage: https://github.com/philopon/apiary
Bug-reports: https://github.com/philopon/apiary/issues
copyright: (c) 2014 Hirotomo Moriwaki
category: Web
build-type: Simple
stability: experimental
-- extra-source-files:
cabal-version: >=1.10
library
exposed-modules: Web.Apiary
Web.Apiary.TH
Control.Monad.Apiary
Control.Monad.Apiary.Filter
Control.Monad.Apiary.Filter.Capture
Control.Monad.Apiary.Action
Data.Apiary.SList
Data.Apiary.Param
other-modules: Web.Apiary.TH.Internal
Control.Monad.Apiary.Internal
Control.Monad.Apiary.Action.Internal
other-extensions: KindSignatures
, DataKinds
, TypeOperators
, GADTs
, TypeFamilies
, Rank2Types
build-depends: base >=4.5 && <4.8
, template-haskell >=2.7 && <2.10
, transformers >=0.3 && <0.5
, mtl >=2.1 && <2.3
, monad-control >=0.3 && <0.4
, transformers-base >=0.4 && <0.5
, text >=1.1 && <1.2
, bytestring >=0.10 && <0.11
, blaze-builder >=0.3 && <0.4
, conduit >=1.1 && <1.2
, monad-logger >=0.3 && <0.4
, data-default-class >=0.0 && <0.1
, http-types >=0.8 && <0.9
, mime-types >=0.1 && <0.2
, wai >=2.1 && <2.2
, warp >=2.1 && <2.2
hs-source-dirs: src
ghc-options: -O2 -Wall
default-language: Haskell2010
source-repository head
type: git
location: git://github.com/philopon/apiary.git