twiml-0.2.1.0: TwiML library for Haskell

Copyright(C) 2018 Mark Andrus Roberts
LicenseBSD-style (see the file LICENSE)
MaintainerMark Andrus Roberts <markandrusroberts@gmail.com>
Stabilityprovisional
Safe HaskellNone
LanguageHaskell98

Text.XML.Twiml.Verbs.Reject

Description

The example in this file assumes

{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE RecordWildCards #-}

import Prelude
import Control.Lens
import Data.Default
import Text.XML.Twiml
import qualified Text.XML.Twiml.Syntax as Twiml

For more information, refer to Twilio's TwiML Reference for <Reject>.

Synopsis

Documentation

reject :: IsTwimlLike f Reject => RejectAttributes -> TwimlLike f Reject a Source #

Example:

>>> :{
let example :: VoiceTwiml
    example =
      voiceResponse $ do
        reject $ def & reason .~ Just Busy
        end
      where Twiml.Syntax{..} = def
:}
>>> putStr $ show example
<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Reject reason="busy" />
</Response>

data RejectF (i :: [Type]) a Source #

Instances

Functor (RejectF i) Source # 

Methods

fmap :: (a -> b) -> RejectF i a -> RejectF i b #

(<$) :: a -> RejectF i b -> RejectF i a #

Functor1 [Type] RejectF Source # 

Methods

fmap1 :: (a -> b) -> f i a -> f i b Source #

Show a => Show (RejectF i a) Source # 

Methods

showsPrec :: Int -> RejectF i a -> ShowS #

show :: RejectF i a -> String #

showList :: [RejectF i a] -> ShowS #

ToXML (RejectF i a) Source # 

Methods

toXML :: RejectF i a -> [Element] Source #

data RejectAttributes Source #

Instances

Eq RejectAttributes Source # 
Data RejectAttributes Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RejectAttributes -> c RejectAttributes #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RejectAttributes #

toConstr :: RejectAttributes -> Constr #

dataTypeOf :: RejectAttributes -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RejectAttributes) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RejectAttributes) #

gmapT :: (forall b. Data b => b -> b) -> RejectAttributes -> RejectAttributes #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RejectAttributes -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RejectAttributes -> r #

gmapQ :: (forall d. Data d => d -> u) -> RejectAttributes -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RejectAttributes -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RejectAttributes -> m RejectAttributes #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RejectAttributes -> m RejectAttributes #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RejectAttributes -> m RejectAttributes #

Ord RejectAttributes Source # 
Read RejectAttributes Source # 
Show RejectAttributes Source # 
Generic RejectAttributes Source # 
Default RejectAttributes Source # 
NFData RejectAttributes Source # 

Methods

rnf :: RejectAttributes -> () #

ToAttrs RejectAttributes Source # 
HasReason RejectAttributes (Maybe Reason) Source # 
type Rep RejectAttributes Source # 
type Rep RejectAttributes = D1 * (MetaData "RejectAttributes" "Text.XML.Twiml.Internal.Twiml" "twiml-0.2.1.0-8vOgp92H6HZKjscJQqq5Ao" False) (C1 * (MetaCons "RejectAttributes" PrefixI True) (S1 * (MetaSel (Just Symbol "_rejectReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Reason))))