Go to file
2020-07-04 19:09:50 +03:00
.azure Azure matrix/stack.yaml update 2020-03-24 12:20:19 +02:00
.github stack list-dependencies is deprecated 2018-06-06 20:39:56 +05:30
demo Remove unnecesary Typeable deriving 2020-01-17 11:48:58 -05:00
yesod Update yesod cabal file for distribution 2020-06-26 13:01:43 -04:00
yesod-auth adjusted indentation of if/then/else to be more compact 2020-03-21 12:49:18 -05:00
yesod-auth-oauth Bump versions 2020-01-17 14:03:59 -05:00
yesod-bin Appease Hackage 2020-06-29 05:36:16 +03:00
yesod-core Allow random 1.2 2020-06-24 10:34:43 +03:00
yesod-eventsource Drop LTS 9 2020-01-07 13:36:58 +02:00
yesod-form Drop LTS 9 2020-01-07 13:36:58 +02:00
yesod-form-multi Drop LTS 9 2020-01-07 13:36:58 +02:00
yesod-newsfeed Drop LTS 9 2020-01-07 13:36:58 +02:00
yesod-persistent Drop LTS 9 2020-01-07 13:36:58 +02: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 1.6.10 2020-06-21 20:27:35 -04:00
yesod-websockets Drop LTS 9 2020-01-07 13:36:58 +02:00
.gitignore Ignore stack.yaml.lock 2019-07-06 14:22:32 +12: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 Add Getting Started to READMEs 2019-11-11 13:46:27 +01: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

Build Status

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.