yesod

A RESTful Haskell web framework built on WAI.

  • Owner: yesodweb/yesod
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Owneryesodweb/yesod
Primary LanguageHaskell
Program languageHaskell (Language Count: 6)
Platform
License:MIT License
所有者活动
Created At2009-06-27 22:54:51
Pushed At2025-06-17 15:34:13
Last Commit At2025-06-17 17:34:13
Release Count895
Last Release Nameyesod-test-1.6.16 (Posted on 2023-09-22 07:30:05)
First Release Nameyesod/0.0.0 (Posted on )
用户参与
Stargazers Count2.7k
Watchers Count95
Fork Count374
Commits Count5.2k
Has Issues Enabled
Issues Count1077
Issue Open Count104
Pull Requests Count642
Pull Requests Open Count14
Pull Requests Close Count142
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private