Created
December 11, 2011 11:53
-
-
Save onote2/1460181 to your computer and use it in GitHub Desktop.
HelloWorld in Yesod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# 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