Created
March 3, 2020 04:45
-
-
Save MarcelineVQ/ffa85dca9b972321087f90ff0e243701 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Lib where | |
import Web.Scotty | |
import Control.Monad.Reader | |
data Config = Conf Int Bool | |
foo :: ReaderT Config ScottyM () | |
foo = do | |
f <- ask | |
lift $ get "/" $ do somethingwithf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment