Added pong.hs
This commit is contained in:
parent
3b121ccde5
commit
ffcbcb449e
15
yesod-core/attic/pong.hs
Normal file
15
yesod-core/attic/pong.hs
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user