-- Initial growler.cabal generated by cabal init. For further -- documentation, see http://haskell.org/cabal/users-guide/ name: growler version: 0.5.0 synopsis: A revised version of the scotty library that attempts to be simpler and more performant. description: Growler provides a very similar interface to scotty, with slight tweaks for performance and a few feature tradeoffs. Growler provides the ability to abort actions (handlers) with arbitrary responses, not just in the event of redirects or raising errors. Growler avoids coercing everything into lazy Text values and reading the whole request body into memory. It also eliminates the ability to abort the handler and have another handler handle the request instead (Scotty's 'next' function). . API is still in flux, so use at your own risk. Pull requests / issues are welcome. . @ {-# LANGUAGE OverloadedStrings #-} . import Web.Growler import Data.Monoid ((<>)) . main = growl id defaultConfig $ do get "/" $ text "Hello, World!" get "/:name" $ do name <- param "name" text ("Hello, " <> name <> "!") @ homepage: http://github.com/iand675/growler license: MIT license-file: LICENSE author: Ian Duncan maintainer: ian@iankduncan.com -- copyright: category: Web build-type: Simple -- extra-source-files: cabal-version: >=1.10 library exposed-modules: Web.Growler, Web.Growler.Handler, Web.Growler.Parsable, Web.Growler.Router, Web.Growler.Types, Web.Growler.EventSource other-extensions: OverloadedStrings, FlexibleContexts, FlexibleInstances, LambdaCase, RankNTypes, ScopedTypeVariables build-depends: base >=4.6 && <5, lens >=4.5 && <5, mtl >=2.2 && <3, bytestring >=0.10 && <0.20, http-types >=0.8 && <1, text >=1.1 && <2, wai >=3.0 && <4, wai-extra >=3.0 && <4, regex-compat >=0.95 && <1, blaze-builder >=0.3 && <0.7, unordered-containers >=0.2 && <0.9, aeson >= 0.8, vector >= 0.7.1, case-insensitive >= 1.2, warp >= 3, pipes >= 4.0 && <4.2, pipes-aeson >= 0.4, pipes-wai >= 3, monad-control == 1.*, either >= 4.3.1, transformers-base >= 0.4 hs-source-dirs: src default-language: Haskell2010