The scotty package

[Tags: bsd3, library]

A Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp.

{-# LANGUAGE OverloadedStrings #-}

import Web.Scotty

import Data.Monoid (mconcat)

main = scotty 3000 $ do
  get "/:word" $ do
    beam <- param "word"
    html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"]

Scotty is the cheap and cheerful way to write RESTful, declarative web applications.

As for the name: Sinatra + Warp = Scotty.

WAI
http://hackage.haskell.org/package/wai
Warp
http://hackage.haskell.org/package/warp

Properties

Versions0.0.1, 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0, 0.8.1, 0.8.2, 0.9.0
Dependenciesaeson (>=0.6.0.2), base (>=4.3.1 && <5), blaze-builder (>=0.3.1.0), bytestring (>=0.9.1), case-insensitive (>=0.4.0.3), conduit (>=0.5.2.7), data-default (>=0.5.0), http-types (>=0.8.0), mtl (>=2.1.2), regex-compat (>=0.95.1), resourcet (>=0.4.0.2), text (>=0.11.2.3), transformers (>=0.3.0.0), wai (>=1.3.0.1), wai-extra (>=1.3.0.3), warp (>=1.3.4.1)
LicenseBSD3
Copyright(c) 2012 Andrew Farmer
AuthorAndrew Farmer <anfarmer@ku.edu>
MaintainerAndrew Farmer <anfarmer@ku.edu>
Stabilityexperimental
CategoryWeb
Home pagehttps://github.com/ku-fpg/scotty
Bug trackerhttps://github.com/ku-fpg/scotty/issues
Source repositoryhead: git clone git://github.com/ku-fpg/scotty.git
Upload dateWed Sep 18 16:19:45 UTC 2013
Uploaded byAndrewFarmer
DistributionsFedora:0.5.0, NixOS:0.9.0
Downloads8295 total (897 in last 30 days)

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees