Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
A Dropwizard-inspired web framework that integrates Servant, monad-metricsEKG, monad-loggerfast-logger, and other useful libraries to provide a smooth web service development experience.
This module provides a ClassyPrelude based prelude with all the stuff you need reexported.
- type Host = Header "Host" Text
- type Form = ReqBody '[FormUrlEncoded] [(Text, Text)]
- type HTTPLink = Link
- type WithLink α = Headers '[Header "Link" [HTTPLink]] α
- decodeEnvy :: FromEnv a => IO (Maybe a)
- withEnvConfig :: FromEnv α => (α -> IO ()) -> IO ()
- hPutStrLn :: MonadIO m => Handle -> String -> m ()
- type BasicContext = (ModHttpClient, ModLogger)
- type BasicApp α = MagicbaneApp BasicContext α
- newBasicContext :: IO BasicContext
Documentation
withEnvConfig :: FromEnv α => (α -> IO ()) -> IO () Source #
Reads an Envy configuration from the env variables and launches the given action if successful. (Does environment variable reading ever fail in practice? Probably not.)
type BasicContext = (ModHttpClient, ModLogger) Source #
type BasicApp α = MagicbaneApp BasicContext α Source #