Go to file
2020-11-04 14:01:57 -08:00
.azure
.github stack list-dependencies is deprecated 2018-06-06 20:39:56 +05:30
demo
yesod
yesod-auth support persistent 2.11 2020-11-04 14:01:57 -08:00
yesod-auth-oauth Bump versions 2020-01-17 14:03:59 -05:00
yesod-bin .. 2020-07-30 14:30:08 -04:00
yesod-core .. 2020-10-06 10:41:53 -04:00
yesod-eventsource Drop LTS 9 2020-01-07 13:36:58 +02:00
yesod-form
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 support persistent 2.11 2020-11-04 14:01:57 -08:00
yesod-sitemap
yesod-static
yesod-test Drop dependency on semigroups 2020-08-02 17:30:19 +08:00
yesod-websockets Drop LTS 9 2020-01-07 13:36:58 +02:00
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile
LICENSE Switch to copyright year range #617 2017-02-27 09:47:45 +02:00
README.md
stack.yaml Azure matrix/stack.yaml update 2020-03-24 12:20:19 +02:00
stack.yaml.lock

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.