The scottish package

[Tags: bsd3, library]

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
http://hackage.haskell.org/package/scotty

Properties

Versions0.1.0.0, 0.1.0.1
Change logNone available
Dependenciesbase (==4.6.*), data-default (==0.5.*), enclosed-exceptions (==1.0.*), http-types (==0.8.*), lens (>=3.10 && <4.1), mtl (==2.1.*), persistent (==1.3.*), resource-pool (==0.2.*), scotty (>=0.6 && <0.8), stm (==2.4.*), text (==1.0.*), transformers (==0.3.*), wai (>=2.0 && <2.2), warp (>=2.0.3.3 && <2.2)
LicenseBSD3
Copyright(c) 2014 Zhang Yichao
AuthorZhang Yichao <echaozh@gmail.com>
MaintainerZhang Yichao <echaozh@gmail.com>
CategoryWeb
Home pagehttps://github.com/echaozh/scottish
Bug trackerhttps://github.com/echaozh/scottish/issues
Source repositoryhead: git clone git://github.com/echaozh/scottish.git
UploadedTue Mar 18 03:10:56 UTC 2014 by echaozh
DistributionsNixOS:0.1.0.1
Downloads246 total (12 in last 30 days)
StatusDocs available [build log]
Successful builds reported [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees