name: scottish version: 0.1.0.1 synopsis: scotty with batteries included description: Scotty web framework with batteries included. For configurations/states, you don't need to hand-roll your own monads every time. Scottish will manage it for you. . @ {-# LANGUAGE OverloadedStrings #-} . import Web.Scottish . import Data.Monoid (mconcat) import Data.Monoid (mconcat) import Data.Text.Lazy (Text) import Network.HTTP.Types.Status (notFound404) . main = scottish' 3000 $ do setConfig (Just "beam") . get "/" $ do beam <- getConfig :: ScottishActionM' (Maybe Text) () (Maybe Text) html $ mconcat ["<h1>Scotty, ", fromJust beam, " me up!</h1>"] . get "/:word" $ do raise notFound404 @ . [Scotty] homepage: https://github.com/echaozh/scottish bug-reports: https://github.com/echaozh/scottish/issues license: BSD3 license-file: LICENSE copyright: (c) 2014 Zhang Yichao author: Zhang Yichao maintainer: Zhang Yichao category: Web build-type: Simple extra-source-files: README.md cabal-version: >=1.10 library exposed-modules: Web.Scottish, Web.Scottish.Database Web.Scottish.Database.Persist build-depends: base >=4.6 && <4.7 , data-default >=0.5 && <0.6 , enclosed-exceptions >=1.0 && <1.1 , http-types >=0.8 && <0.9 , lens >=3.10 && <4.1 , mtl >=2.1 && <2.2 , persistent >=1.3 && <1.4 , resource-pool >=0.2 && <0.3 , scotty >=0.6 && <0.8 , stm >=2.4 && <2.5 , text >=1.0 && <1.1 , transformers >=0.3 && <0.4 , wai >=2.0 && <2.2 , warp >=2.0.3.3 && <2.2 hs-source-dirs: src default-language: Haskell2010 ghc-options: -Wall -fno-warn-orphans source-repository head type: git location: git://github.com/echaozh/scottish.git