xich/scotty — pull request #45 by dmjio (2013-09-07 22:01:29+00:00)
Title: Added warp-tls integration

Decided to forego the Web.Scotty.TLS route since importing scottyApp from Web.Scotty would have caused a circle import. Just included scottyTLS in Web.Scotty.
{-# LANGUAGE OverloadedStrings #-}

import Web.Scotty

main :: IO ()
main = scottyTLS 3000 "server.key" "server.crt" $
get "/" $ html "ok"