linnet-0.1.0.0: Lightweight library for building HTTP API

Safe HaskellNone
LanguageHaskell2010

Linnet.Compile

Documentation

class Compile cts m es where Source #

Instances
Monad m => Compile CNil m (HList ([] :: [Type])) Source # 
Instance details

Defined in Linnet.Compile

(KnownSymbol ct, ToResponse ct a, ToResponse ct SomeException, Compile cts m (HList es), MonadCatch m) => Compile (Coproduct (Proxy ct) cts) m (HList (Endpoint m a ': es)) Source # 
Instance details

Defined in Linnet.Compile

Methods

compile :: HList (Endpoint m a ': es) -> ReaderT Request m Response Source #