1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-22 20:01:36 +03:00
guide/tests/SnippetsExample.md
2017-07-27 13:56:02 +03:00

530 B

{-# 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 $ {{PopUp}}["Hey there"]text "Hello world!"