Package0.22Web
scotty
Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp
- Version0.22
- CategoryWeb
- LicenceBSD-3-Clause
- AuthorAndrew Farmer <xichekolas@gmail.com>
- MaintainerThe Scotty maintainers
- Homepagegithub.com/scotty-web/scotty
- Pinned byhackage scotty 0.22
- Sourcehackage.haskell.org/package/scotty-0.22
Modules
5 modules- Web.Scotty83It should be noted that most of the code snippets below depend on the
- Web.Scotty.Cookie22This module provides utilities for adding cookie support inside scotty applications. Most code has been adapted from 'scotty-cookie'. Exa…
- Web.Scotty.Trans83It should be noted that most of the code snippets below depend on the
- Web.Scotty.Trans.Strict78This module is essentially identical to Web.Scotty.Trans, except that
Internal modules · 1
Description
A Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp.
{-# LANGUAGE OverloadedStrings #-} import Web.Scotty main = scotty 3000 $ get "/:word" $ do beam <- pathParam "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.
Depends on
23 packages- aeson-2.2.3.0in this set
- base-4.20.2.0with GHC
- blaze-builder-0.4.4.1in this set
- bytestring-0.12.2.0with GHC
- case-insensitive-1.2.1.0in this set
- cookie-0.5.1in this set
- data-default-class-0.2.0.0in this set
- exceptions-0.10.9with GHC
- http-types-0.12.4in this set
- monad-control-1.0.3.1in this set
- mtl-2.3.1with GHC
- network-3.2.8.0in this set
- regex-compat-0.95.2.1in this set
- resourcet-1.3.0in this set
- stm-2.5.3.1with GHC
- text-2.1.3with GHC
- time-1.12.2with GHC
- transformers-0.6.1.1with GHC
- transformers-base-0.4.6in this set
- unliftio-0.2.25.1in this set
- wai-3.2.4in this set
- wai-extra-3.1.16in this set
- warp-3.4.9in this set
Used by in this set · 0
Nothing in this set depends on it.