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


A Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp. '&#123;-&#35; LANGUAGE OverloadedStrings&#35;-&#125; import Web.Scotty import Data.Monoid (mconcat) main = scotty 3000 $ do&#32;&#32;get&#34;/:word&#34; $ do&#32;&#32;&#32;&#32;beam<- param&#34;word&#34;&#32;&#32;&#32;&#32;html $ mconcat [&#34;&#60;h1&#62;Scotty,&#34;, beam,&#34; me up!&#60;/h1&#62;&#34;] ' 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>.

BSD-3-Clause

cloud_download Downloads

Please select a product to see the available package versions:
Loading...
Loading package downloads...