forked from scotty-web/scotty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscotty.cabal
91 lines (87 loc) · 3.19 KB
/
scotty.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Name: scotty
Version: 0.7.0
Synopsis: Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp
Homepage: https://github.com/scotty-web/scotty
Bug-reports: https://github.com/scotty-web/scotty/issues
License: BSD3
License-file: LICENSE
Author: Andrew Farmer <[email protected]>
Maintainer: Andrew Farmer <[email protected]>
Copyright: (c) 2012-2013 Andrew Farmer
Category: Web
Stability: experimental
Build-type: Simple
Cabal-version: >= 1.10
Description:
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.
.
* A page is as simple as defining the verb, url pattern, and Text content.
.
* It is template-language agnostic. Anything that returns a Text value will do.
.
* Conforms to WAI Application interface.
.
* Uses very fast Warp webserver by default.
.
As for the name: Sinatra + Warp = Scotty.
.
[WAI] <http://hackage.haskell.org/package/wai>
.
[Warp] <http://hackage.haskell.org/package/warp>
Extra-source-files:
README.md
ReleaseNotes.md
examples/404.html
examples/basic.hs
examples/cookies.hs
examples/exceptions.hs
examples/globalstate.hs
examples/gzip.hs
examples/options.hs
examples/upload.hs
examples/urlshortener.hs
examples/static/jquery.js
examples/static/jquery-json.js
Library
Exposed-modules: Web.Scotty
Web.Scotty.Trans
other-modules: Web.Scotty.Action
Web.Scotty.Route
Web.Scotty.Types
Web.Scotty.Util
default-language: Haskell2010
build-depends: aeson >= 0.6.2.1 && < 0.8,
base >= 4.3.1 && < 5,
blaze-builder >= 0.3.3.0 && < 0.4,
bytestring >= 0.10.0.2 && < 0.11,
case-insensitive >= 1.0.0.1 && < 1.2,
conduit >= 1.0.9.3 && < 1.1,
data-default >= 0.5.3 && < 0.6,
http-types >= 0.8.2 && < 0.9,
mtl >= 2.1.2 && < 2.2,
regex-compat >= 0.95.1 && < 0.96,
text >= 0.11.3.1 && < 1.2,
transformers >= 0.3.0.0 && < 0.4,
wai >= 2.0.0 && < 2.1,
wai-extra >= 2.0.1 && < 2.1,
warp >= 2.0.0.1 && < 2.1
GHC-options: -Wall -fno-warn-orphans
source-repository head
type: git
location: git://github.com/scotty-web/scotty.git