yesod

A RESTful Haskell web framework built on WAI.

  • 所有者: yesodweb/yesod
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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.

主要指標

概覽
名稱與所有者yesodweb/yesod
主編程語言Haskell
編程語言Haskell (語言數: 6)
平台
許可證MIT License
所有者活动
創建於2009-06-27 22:54:51
推送於2025-06-17 15:34:13
最后一次提交2025-06-17 17:34:13
發布數895
最新版本名稱yesod-test-1.6.16 (發布於 2023-09-22 07:30:05)
第一版名稱yesod/0.0.0 (發布於 )
用户参与
星數2.7k
關注者數95
派生數374
提交數5.2k
已啟用問題?
問題數1077
打開的問題數104
拉請求數642
打開的拉請求數14
關閉的拉請求數142
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?