hsku
Safe HaskellSafe-Inferred
LanguageHaskell2010

HsKu.Web

Documentation

type Name = Text Source #

data MMsg Source #

Constructors

MMsg 

Instances

Instances details
FromJSON MMsg Source # 
Instance details

Defined in HsKu.Web

Generic MMsg Source # 
Instance details

Defined in HsKu.Web

Associated Types

type Rep MMsg :: Type -> Type #

Methods

from :: MMsg -> Rep MMsg x #

to :: Rep MMsg x -> MMsg #

Show MMsg Source # 
Instance details

Defined in HsKu.Web

Methods

showsPrec :: Int -> MMsg -> ShowS #

show :: MMsg -> String #

showList :: [MMsg] -> ShowS #

Eq MMsg Source # 
Instance details

Defined in HsKu.Web

Methods

(==) :: MMsg -> MMsg -> Bool #

(/=) :: MMsg -> MMsg -> Bool #

type Rep MMsg Source # 
Instance details

Defined in HsKu.Web

data MPost Source #

Constructors

MPost 

Fields

Instances

Instances details
ToJSON MPost Source # 
Instance details

Defined in HsKu.Web

Generic MPost Source # 
Instance details

Defined in HsKu.Web

Associated Types

type Rep MPost :: Type -> Type #

Methods

from :: MPost -> Rep MPost x #

to :: Rep MPost x -> MPost #

Show MPost Source # 
Instance details

Defined in HsKu.Web

Methods

showsPrec :: Int -> MPost -> ShowS #

show :: MPost -> String #

showList :: [MPost] -> ShowS #

Eq MPost Source # 
Instance details

Defined in HsKu.Web

Methods

(==) :: MPost -> MPost -> Bool #

(/=) :: MPost -> MPost -> Bool #

type Rep MPost Source # 
Instance details

Defined in HsKu.Web

type Rep MPost = D1 ('MetaData "MPost" "HsKu.Web" "hsku-0.0.1-inplace" 'False) (C1 ('MetaCons "MPost" 'PrefixI 'True) (S1 ('MetaSel ('Just "chn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Channel) :*: S1 ('MetaSel ('Just "msg") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

type API = ("haiku" :> (QueryParam' '[Required] "input" Text :> Get '[JSON] HaikuResult)) :<|> ("mattermost" :> (ReqBody '[JSON] MMsg :> PostNoContent)) Source #