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.Leave

Description

The example in this file assumes

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

import Prelude
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 <Leave>.

Synopsis

Documentation

leave :: IsTwimlLike f Leave => TwimlLike f Leave a Source #

Leave a queue. Example:

>>> :{
let example :: VoiceTwiml
    example =
      voiceResponse $ do
        leave
        end
      where Twiml.Syntax{..} = def
:}
>>> putStr $ show example
<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Leave />
</Response>

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

Instances

Functor (LeaveF i) Source # 

Methods

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

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

Functor1 [Type] LeaveF Source # 

Methods

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

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

Methods

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

show :: LeaveF i a -> String #

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

ToXML (LeaveF i a) Source # 

Methods

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