scotty-tls: TLS for Scotty

[ bsd3, library, web ] [ Propose Tags ]

Run your Scotty apps over TLS

[Skip to Readme]




Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],, 0.4.0, 0.4.1
Change log
Dependencies base (>=4.3.1 && <5), scotty (>=0.10.0), transformers (>=, wai (>=, warp (>=, warp-tls (>= [details]
License BSD-3-Clause
Author David Johnson
Category Web
Home page
Source repo head: git clone git://
Uploaded by DavidJohnson at 2015-10-28T17:28:50Z
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 3747 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-10-30 [all 1 reports]

Readme for scotty-tls-0.4.1

[back to package description]


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>"]