calamity-0.8.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.HTTP.Reason

Description

A wrapper request that adds a reson to a request

Synopsis

Documentation

data Reason a Source #

Constructors

Reason a Text 

Instances

Instances details
Show a => Show (Reason a) Source # 
Instance details

Defined in Calamity.HTTP.Reason

Methods

showsPrec :: Int -> Reason a -> ShowS #

show :: Reason a -> String #

showList :: [Reason a] -> ShowS #

Request a => Request (Reason a) Source # 
Instance details

Defined in Calamity.HTTP.Reason

Associated Types

type Result (Reason a) Source #

Eq a => Eq (Reason a) Source # 
Instance details

Defined in Calamity.HTTP.Reason

Methods

(==) :: Reason a -> Reason a -> Bool #

(/=) :: Reason a -> Reason a -> Bool #

type Result (Reason a) Source # 
Instance details

Defined in Calamity.HTTP.Reason

type Result (Reason a) = Result a

reason :: Request a => Text -> a -> Reason a Source #

Attach a reason to a request