yesod: Creation of type-safe, RESTful web applications.

[ library, mit, web, yesod ] [ Propose Tags ]

API docs and the README are available at http://www.stackage.org/package/yesod


[Skip to Readme]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.0, 0.0.0.1, 0.0.0.2, 0.2.0, 0.3.0, 0.3.1, 0.3.1.1, 0.4.0, 0.4.0.1, 0.4.0.2, 0.4.0.3, 0.4.1, 0.5.0, 0.5.0.1, 0.5.0.2, 0.5.0.3, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.4.1, 0.5.4.2, 0.6.0, 0.6.0.1, 0.6.0.2, 0.6.1, 0.6.1.1, 0.6.1.2, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0, 0.8.1, 0.8.2, 0.8.2.1, 0.9.1, 0.9.1.1, 0.9.2, 0.9.2.1, 0.9.2.2, 0.9.3, 0.9.3.1, 0.9.3.2, 0.9.3.3, 0.9.3.4, 0.9.4, 0.9.4.1, 0.10.1, 0.10.1.1, 0.10.1.2, 0.10.1.3, 0.10.1.4, 0.10.2, 1.0.0, 1.0.0.1, 1.0.0.2, 1.0.1, 1.0.1.1, 1.0.1.2, 1.0.1.3, 1.0.1.4, 1.0.1.5, 1.0.1.6, 1.1.0, 1.1.0.1, 1.1.0.2, 1.1.0.3, 1.1.1, 1.1.1.2, 1.1.2, 1.1.3, 1.1.3.1, 1.1.4, 1.1.4.1, 1.1.5, 1.1.6, 1.1.7, 1.1.7.1, 1.1.7.2, 1.1.8, 1.1.8.1, 1.1.8.2, 1.1.9, 1.1.9.1, 1.1.9.2, 1.1.9.3, 1.1.9.4, 1.2.0, 1.2.0.1, 1.2.1, 1.2.1.1, 1.2.2, 1.2.2.1, 1.2.3, 1.2.4, 1.2.5, 1.2.5.1, 1.2.5.2, 1.2.5.3, 1.2.6, 1.2.6.1, 1.4.0, 1.4.1, 1.4.1.1, 1.4.1.2, 1.4.1.3, 1.4.1.4, 1.4.1.5, 1.4.2, 1.4.2.1, 1.4.3, 1.4.3.1, 1.4.4, 1.4.5, 1.6.0, 1.6.0.1, 1.6.0.2, 1.6.1.0, 1.6.1.1, 1.6.1.2, 1.6.2, 1.6.2.1
Change log ChangeLog.md
Dependencies aeson, base (>=4.10 && <5), bytestring, conduit (>=1.3), data-default-class, directory, fast-logger, file-embed, monad-logger, shakespeare, streaming-commons, template-haskell, text, unix, unordered-containers, wai (>=1.3), wai-extra (>=1.3), wai-logger, warp (>=1.3), yaml (>=0.8.17), yesod-core (>=1.6 && <1.7), yesod-form (>=1.6 && <1.8), yesod-persistent (>=1.6 && <1.7) [details]
License MIT
Author Michael Snoyman <michael@snoyman.com>
Maintainer Michael Snoyman <michael@snoyman.com>
Category Web, Yesod
Home page http://www.yesodweb.com/
Source repo head: git clone https://github.com/yesodweb/yesod
Uploaded by MichaelSnoyman at 2022-09-08T11:36:22Z
Distributions Arch:1.6.2.1, Debian:1.6.1.0, Fedora:1.6.2, FreeBSD:1.4.1.5, LTSHaskell:1.6.2.1, NixOS:1.6.2.1, Stackage:1.6.2.1, openSUSE:1.6.2
Downloads 151316 total (371 in the last 30 days)
Rating 2.0 (votes: 8) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-09-08 [all 1 reports]

Readme for yesod-1.6.2.1

[back to package description]

yesod

The yesod package groups together the various Yesod related packages into one cohesive whole. This is the "battery loaded" version of Yesod, whereas most of the core code lives in yesod-core.

For the yesod executable, see yesod-bin.

Yesod is fully documented on its website.

Getting Started

Learn more about Yesod on its main website. If you want to get started using Yesod, we strongly recommend the quick start guide, based on the Haskell build tool stack.

Here's a minimal example!

{-# LANGUAGE OverloadedStrings, QuasiQuotes, TemplateHaskell, TypeFamilies #-}

import Yesod

data App = App -- Put your config, database connection pool, etc. in here.

-- Derive routes and instances for App.
mkYesod "App" [parseRoutes|
/ HomeR GET
|]

instance Yesod App -- Methods in here can be overridden as needed.

-- The handler for the GET request at /, corresponds to HomeR.
getHomeR :: Handler Html
getHomeR = defaultLayout [whamlet|Hello World!|]

main :: IO ()
main = warp 3000 App

To read about each of the concepts in use above (routing, handlers, linking, JSON), in detail, visit Basics in the Yesod book.