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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
|
Name: scotty
Version: 0.11.6
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 <xichekolas@gmail.com>
Maintainer: Andrew Farmer <xichekolas@gmail.com>
Copyright: (c) 2012-Present 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 $
  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>
tested-with: GHC == 7.6.3
, GHC == 7.8.4
, GHC == 7.10.3
, GHC == 8.0.2
, GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.3
, GHC == 8.10.1
Extra-source-files:
README.md
changelog.md
examples/404.html
examples/LICENSE
examples/*.hs
examples/static/jquery.js
examples/static/jquery-json.js
examples/uploads/.keep
Library
Exposed-modules: Web.Scotty
Web.Scotty.Trans
Web.Scotty.Internal.Types
other-modules: Web.Scotty.Action
Web.Scotty.Route
Web.Scotty.Util
default-language: Haskell2010
build-depends: aeson >= 0.6.2.1 && < 1.5,
base >= 4.6 && < 5,
base-compat-batteries >= 0.10 && < 0.12,
blaze-builder >= 0.3.3.0 && < 0.5,
bytestring >= 0.10.0.2 && < 0.11,
case-insensitive >= 1.0.0.1 && < 1.3,
data-default-class >= 0.0.1 && < 0.2,
exceptions >= 0.7 && < 0.11,
http-types >= 0.9.1 && < 0.13,
monad-control >= 1.0.0.3 && < 1.1,
mtl >= 2.1.2 && < 2.3,
network >= 2.6.0.2 && < 3.2,
regex-compat >= 0.95.1 && < 0.96,
text >= 0.11.3.1 && < 1.3,
transformers >= 0.3.0.0 && < 0.6,
transformers-base >= 0.4.1 && < 0.5,
transformers-compat >= 0.4 && < 0.7,
wai >= 3.0.0 && < 3.3,
wai-extra >= 3.0.0 && < 3.1,
warp >= 3.0.13 && < 3.4
GHC-options: -Wall -fno-warn-orphans
test-suite spec
main-is: Spec.hs
other-modules: Web.ScottySpec
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: test
build-depends: async,
base,
bytestring,
data-default-class,
directory,
hspec == 2.*,
hspec-wai >= 0.6.3,
http-types,
lifted-base,
network,
scotty,
text,
wai
build-tool-depends: hspec-discover:hspec-discover == 2.*
GHC-options: -Wall -threaded -fno-warn-orphans
benchmark weigh
main-is: Main.hs
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: bench
build-depends: base,
scotty,
lucid,
bytestring,
mtl,
text,
transformers,
data-default-class,
weigh == 0.0.16
GHC-options: -Wall -O2 -threaded
source-repository head
type: git
location: git://github.com/scotty-web/scotty.git
|