| Copyright | (C) 2018 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.Say
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 <Say>.
- say :: IsTwimlLike f Say => String -> SayAttributes -> TwimlLike f Say ()
- data Say
- data SayF (i :: [Type]) a
- data SayAttributes
Documentation
say :: IsTwimlLike f Say => String -> SayAttributes -> TwimlLike f Say () Source #
Example:
>>>:{let example :: VoiceTwiml example = voiceResponse $ do say "Bom dia." $ def & voice .~ Just (Alice $ Just PtBR) & loop .~ Just 2 end where Twiml.Syntax{..} = def :}
>>>putStr $ show example<?xml version="1.0" encoding="UTF-8"?> <Response> <Say voice="alice" loop="2" language="pt-BR">Bom dia.</Say> </Response>
data SayAttributes Source #
Instances