postmark-0.2.0: Library for postmarkapp.com HTTP Api

Safe HaskellNone
LanguageHaskell98

Network.Api.Postmark.Data

Contents

Synopsis

Request types

data Email Source #

Email data type. It is recommended that you use the defaultEmail function and selector syntax to build an email, e.g.:

defaultEmail {
    emailFrom = "you@yourdomain.com"
  , emailTo = "person@example.com"
  , emailSubject = "This is an example email!"
  }

Instances

Response types

data Sent Source #

Instances

Eq Sent Source # 

Methods

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

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

Show Sent Source # 

Methods

showsPrec :: Int -> Sent -> ShowS #

show :: Sent -> String #

showList :: [Sent] -> ShowS #

FromJSON Sent Source # 

Methods

parseJSON :: Value -> Parser Sent #

Internal Json tools

oljson :: ToJSON b => Text -> [a] -> ([a] -> b) -> Maybe (Text, Value) Source #