Go to file
2021-07-22 14:54:58 +03:00
.github add to test 2021-05-06 07:35:37 -06:00
demo Fix typo 2021-04-14 13:46:03 +02:00
yesod Bump version and update Changelog 2021-06-30 18:11:33 +08:00
yesod-auth Version bumps for bounds 2021-04-15 09:18:55 +03:00
yesod-auth-oauth Version bumps for bounds 2021-04-15 09:18:55 +03:00
yesod-bin Simplified implementation of cert/key parser option 2021-02-10 13:54:22 +00:00
yesod-core Export defaultGen 2021-07-22 14:54:58 +03:00
yesod-eventsource New cabal-version for Hackage 2020-11-08 12:52:23 +02:00
yesod-form Correct a typo in yesod-form's description 2021-07-08 17:51:58 +08:00
yesod-form-multi Version bumps for bounds 2021-04-15 09:18:55 +03:00
yesod-newsfeed Drop LTS 9 2020-01-07 13:36:58 +02:00
yesod-persistent fix version in changelog 2021-05-05 16:31:30 -06:00
yesod-sitemap Drop LTS 9 2020-01-07 13:36:58 +02:00
yesod-static One more sort for #1684 2020-07-04 19:09:50 +03:00
yesod-test Version bump 2020-12-16 05:45:46 +02:00
yesod-websockets Change cabal-version syntax 2021-04-03 22:37:00 +03:00
.gitignore Support persistent-2.13 2021-05-05 12:16:05 -06:00
CODE_OF_CONDUCT.md Switch CoC to Contributor Covenant 2017-12-06 16:02:01 +02:00
CONTRIBUTING.md Respond to @psibi's comments 2017-11-08 22:43:51 -08:00
Dockerfile add a Dockerfile for haskell development 2015-05-27 11:43:16 -04:00
LICENSE Switch to copyright year range #617 2017-02-27 09:47:45 +02:00
README.md Move to actions, test persistent 2.11 2020-11-06 07:15:17 +02:00
stack-persistent-211.yaml Move to actions, test persistent 2.11 2020-11-06 07:15:17 +02:00
stack-persistent-212.yaml Support persistent 2.12 2021-03-30 21:48:10 +03:00
stack-persistent-213.yaml Fix extra-deps 2021-05-07 13:08:39 +03:00
stack.yaml Azure matrix/stack.yaml update 2020-03-24 12:20:19 +02:00
stack.yaml.lock Azure matrix/stack.yaml update 2020-03-24 12:20:19 +02:00

Tests

Yesod Web Framework

An advanced web framework using the Haskell programming language. Featuring:

  • safety & security guaranteed at compile time
  • developer productivity: tools for all your basic web development needs
  • raw performance
    • fast, compiled code
    • techniques for constant-space memory consumption
  • asynchronous IO
    • this is built in to the Haskell programming language (like Erlang)

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.

Hacking on Yesod

Yesod consists mostly of four repositories:

git clone --recurse-submodules http://github.com/yesodweb/shakespeare
git clone --recurse-submodules http://github.com/yesodweb/persistent
git clone --recurse-submodules http://github.com/yesodweb/wai
git clone --recurse-submodules http://github.com/yesodweb/yesod

Each repository can be built with stack build.