Skip to content

Instantly share code, notes, and snippets.

@onote2
Created December 11, 2011 11:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onote2/1460181 to your computer and use it in GitHub Desktop.
Save onote2/1460181 to your computer and use it in GitHub Desktop.
HelloWorld in Yesod
{-# LANGUAGE TypeFamilies, QuasiQuotes, MultiParamTypeClasses, TemplateHaskell, OverloadedStrings #-}
import Yesod
-- Versions installed: 0.9.3.4
data HelloWorld = HelloWorld
mkYesod "HelloWorld" [parseRoutes|
/ HomeR GET
|]
instance Yesod HelloWorld where
approot _ = ""
getHomeR = defaultLayout [whamlet|Hello World|]
main = warpDebug 3000 HelloWorld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment