Copyright | (C) 2014-15 Mark Andrus Roberts |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Mark Andrus Roberts <markandrusroberts@gmail.com> |
Stability | provisional |
Safe Haskell | None |
Language | Haskell98 |
Text.XML.Twiml.Verbs.Reject
Description
The example in this file assumes
{-# LANGUAGE RebindableSyntax #-} {-# LANGUAGE RecordWildCards #-} import Prelude import Text.XML.Twiml import qualified Text.XML.Twiml.Syntax as Twiml
For more information, refer to Twilio's TwiML Reference for <Reject>.
- reject :: IsTwimlLike f Reject => RejectAttributes -> TwimlLike f Reject a
- data Reject
- data RejectF i a
- data RejectAttributes
Documentation
reject :: IsTwimlLike f Reject => RejectAttributes -> TwimlLike f Reject a
Example:
example :: VoiceTwiml example = response $ do reject $ def & reason .~ Just Busy end where Twiml.Syntax{..} = def
>>>
show example
<?xml version="1.0" encoding="UTF-8"?> <Response> <Reject reason="busy" /> </Response>
data Reject
data RejectF i a
data RejectAttributes