packages feed

apiary-0.3.0.0: apiary.cabal

name:                apiary
version:             0.3.0.0
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|/:String|] $ do
      stdMethod GET . action $ \\name -> do
        contentType "text/html"
        lbs . L.concat $ ["<h1>Hello, ", L.pack name, "!</h1>"]
  @
  .
    * Nestable route handling(ApiaryT Monad; capture, stdMethod and more.).
  .
    * type safe path capture.
  .
  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.Action
  other-modules:       Web.Apiary.TH.Capture
                       Control.Monad.Apiary.Internal
                       Control.Monad.Apiary.Action.Internal
  other-extensions:    TemplateHaskell
                       FlexibleInstances
                       LambdaCase
  build-depends:       base              >=4.7 && <4.8
                     , template-haskell  >=2.9 && <2.10
                     , transformers      >=0.3 && <0.5
                     , mtl               >=2.1 && <2.3
                     , monad-control     >=0.3 && <0.4
                     , mmorph            >=1.0 && <1.1
                     , 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      >=0.5 && <0.6

                     , 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