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

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

End is not actually a TwiML verb; it is used for terminating TwiML.

Synopsis

Documentation

end :: IsTwimlLike f End => TwimlLike f End a Source #

Terminate a TwiML response, or construct an empty TwiML response. Example:

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

data End Source #

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

Instances

Functor (EndF i) Source # 

Methods

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

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

Functor1 [Type] EndF Source # 

Methods

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

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

Methods

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

show :: EndF i a -> String #

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

ToXML (EndF i a) Source # 

Methods

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