yesod: Creation of type-safe, RESTful web applications.
Yesod is a framework designed to foster creation of RESTful web application that have strong compile-time guarantees of correctness. It also affords space efficient code and portability to many deployment backends, from CGI to stand-alone serving.
The Yesod documentation site http://docs.yesodweb.com/ has much more information, tutorials and information on some of the supporting packages, like Hamlet and web-routes-quasi.
As a quick overview, here is a fully-functional Hello World application:
{-# LANGUAGE TypeFamilies, QuasiQuotes, TemplateHaskell #-} import Yesod data HelloWorld = HelloWorld mkYesod "HelloWorld" [$parseRoutes|/ Home GET|] instance Yesod HelloWorld where approot _ = "" getHome = return $ RepPlain $ cs "Hello World!" main = toWaiApp HelloWorld >>= basicHandler 3000
Modules
- Yesod
- Yesod.Content
- Yesod.Dispatch
- Yesod.Form
- Yesod.Hamlet
- Yesod.Handler
- Helpers
- Yesod.Helpers.AtomFeed
- Yesod.Helpers.Auth
- Yesod.Helpers.Sitemap
- Yesod.Helpers.Static
- Yesod.Internal
- Yesod.Json
- Yesod.Request
- Yesod.Yesod
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
buildtests | Build the executable to run unit tests | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- yesod-0.2.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates