1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-23 04:07:14 +03:00
guide/tests/SnippetsExample.md

19 lines
530 B
Markdown
Raw Normal View History

{-# LANGUAGE OverloadedStrings #-}
module Main where
import {{Hackage}}[Data.Monoid] ((<>))
import {{Hackage}}[Web.Spock]
import {{Hackage}}[Web.Spock.Config]
main :: IO ()
main = do
config <- defaultSpockCfg () PCNoDatabase ()
runSpock 8080 $ spock config app
app :: SpockM () () () ()
app = do
{{HltLine}} -- When “/” is requested, show “Hello world!”
{{HltLine}} get root $
2017-07-27 13:56:02 +03:00
{{PopUp}}["Hey there"]text "Hello world!"