quenya-verb-0.0.1: Quenya verb conjugator

Safe HaskellNone
LanguageHaskell2010

Quenya.Web

Synopsis

Documentation

main :: IO () Source

Runs application as a Warp app

application :: Bool -> IO Application Source

Converts the Scotty app to a Warp app, for ease of deployment

respond :: ByteString -> Map String String Source

Takes the raw body of a request and returns a JSONable response

data StringVerb Source

The "raw" (i.e. without ADTs) verb data type. Only use for interacting with the user.

Constructors

StringVerb 

defaultStringVerb :: StringVerb Source

Arbitrary default verb, meaning "I love you"

toVerb :: StringVerb -> Verb Source

Converts a StringVerb to a Verb using the functions in Conversion