yesod/helloworld.hs
Michael Snoyman c91a4ada56 Changes reflecting web-routes-quasi modifications.
Minimal changes to get hello world working.
2010-06-30 12:23:55 +03:00

8 lines
284 B
Haskell

{-# LANGUAGE TypeFamilies, QuasiQuotes #-}
import Yesod
data HelloWorld = HelloWorld
mkYesod "HelloWorld" [$parseRoutes|/ Home GET|]
instance Yesod HelloWorld where approot _ = ""
getHome = return $ RepPlain $ toContent "Hello World!"
main = toWaiApp HelloWorld >>= basicHandler 3000