TLS for Scotty

Latest on Hackage:0.4.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed by David Johnson
Maintained by


You can test by generating a self-signed certificate here.

cabal update && cabal install scotty-tls
{-# LANGUAGE OverloadedStrings #-}

import           Data.Monoid    (mconcat)
import           Web.Scotty
import           Web.Scotty.TLS

main :: IO ()
main = scottyTLS 3000 "server.key" "server.crt" $ do
         get "/:word" $ do
             beam <- param "word"
             html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"]



  • Remove unnecessary argument to scottyTTLS so that scotty-tls can build with scotty-0.10 and up
Depends on 6 packages:
Used by 1 package:
comments powered byDisqus