magicbane-0.1.3: A web framework that integrates Servant, ClassyPrelude, EKG, fast-logger, wai-cli…

Safe HaskellTrustworthy
LanguageHaskell2010

Magicbane

Contents

Description

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.

Synopsis

Documentation

type Host = Header "Host" Text Source #

type WithLink α = Headers '[Header "Link" [HTTPLink]] α Source #

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.)

hPutStrLn :: MonadIO m => Handle -> String -> m () Source #

Orphan instances

Default α => DefConfig α Source # 

Methods

defConfig :: α #