Safe Haskell | None |
---|---|
Language | Haskell2010 |
- main :: IO ()
- application :: Bool -> IO Application
- respond :: ByteString -> Map String String
- data StringVerb = StringVerb {}
- defaultStringVerb :: StringVerb
- toVerb :: StringVerb -> Verb
Documentation
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.
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