Snap and Happstack

As of March 2020, School of Haskell has been switched to read-only mode.

Snap and Happstack- together with a simple helper library- are now available on the School of Haskell.


{-# LANGUAGE OverloadedStrings #-}
module Main where

import Snap.Http.Server.Env
import Snap.Core

main :: IO ()
main = httpServe defaultConfig $ writeBS "Hello from Snap!"


module Main where

import Happstack.Server.Env

main = simpleHTTP nullConf $ ok "Hello from Happstack"
comments powered by Disqus