Added pong.hs

This commit is contained in:
Michael Snoyman 2013-03-17 12:48:11 +02:00
parent 3b121ccde5
commit ffcbcb449e

15
yesod-core/attic/pong.hs Normal file
View File

@ -0,0 +1,15 @@
{-# LANGUAGE TemplateHaskell, QuasiQuotes, TypeFamilies #-}
import Yesod.Core
import Network.Wai.Handler.Warp
data Pong = Pong
mkYesod "Pong" [parseRoutes|
/ HomeR GET
|]
instance Yesod Pong
getHomeR = liftHandlerT $ return "PONG"
main = warp 3000 Pong