HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Package0.22Web

scotty

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

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

Used by in this set · 0

Nothing in this set depends on it.