tmp-proc-example-0.5.1.2: Shows how to test a simple service using tmp-proc
Copyright(c) 2020-2021 Tim Emiola
LicenseBSD3
MaintainerTim Emiola <adetokunbo@users.noreply.github.com>
Safe HaskellNone
LanguageHaskell2010

TmpProc.Example2.Server

Description

Implements a demo service.

Synopsis

Server implementation

data AppEnv Source #

An application-level environment suitable for storing in a Reader.

Constructors

AppEnv 

runServer' :: IO AppEnv -> Port -> IO () Source #

Runs waiApp on the given port.

runServer :: IO () Source #

Runs waiApp using defaults for local development.

waiApp :: AppEnv -> Application Source #

An Application that runs the server using the given DB and Cache.