minion-0.1.0.0: A Haskell introspectable web router
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Minion.Response.Header

Documentation

newtype AddHeader name a Source #

Constructors

AddHeader a 

Instances

Instances details
Functor (AddHeader name) Source # 
Instance details

Defined in Web.Minion.Response.Header

Methods

fmap :: (a -> b) -> AddHeader name a -> AddHeader name b #

(<$) :: a -> AddHeader name b -> AddHeader name a #

(UnwindHeaders hs, KnownSymbol name, ToHttpApiData typ) => UnwindHeaders (AddHeader name typ ': hs) Source # 
Instance details

Defined in Web.Minion.Response.Header

Methods

unwindHeaders :: HList (AddHeader name typ ': hs) -> [Header] Source #

data AddHeaders hs a Source #

Constructors

AddHeaders 

Fields

Instances

Instances details
CanRespond a => CanRespond (AddHeaders hs a :: Type) Source # 
Instance details

Defined in Web.Minion.Response.Header

(ToResponse m a, UnwindHeaders hs, Monad m) => ToResponse m (AddHeaders hs a) Source # 
Instance details

Defined in Web.Minion.Response.Header

Methods

toResponse :: [ByteString] -> AddHeaders hs a -> m Response Source #

Functor (AddHeaders hs) Source # 
Instance details

Defined in Web.Minion.Response.Header

Methods

fmap :: (a -> b) -> AddHeaders hs a -> AddHeaders hs b #

(<$) :: a -> AddHeaders hs b -> AddHeaders hs a #

class UnwindHeaders hs where Source #

Methods

unwindHeaders :: HList hs -> [Header] Source #

Instances

Instances details
UnwindHeaders ('[] :: [Type]) Source # 
Instance details

Defined in Web.Minion.Response.Header

Methods

unwindHeaders :: HList '[] -> [Header] Source #

(UnwindHeaders hs, KnownSymbol name, ToHttpApiData typ) => UnwindHeaders (AddHeader name typ ': hs) Source # 
Instance details

Defined in Web.Minion.Response.Header

Methods

unwindHeaders :: HList (AddHeader name typ ': hs) -> [Header] Source #