Safe Haskell | None |
---|
- data Say p
- say :: Twiml p t => String -> t -> Say p
- say' :: Twiml p t => SayAttributes -> String -> t -> Say p
- sayMan :: Twiml p t => String -> t -> Say p
- sayMan' :: Twiml p t => Lang -> String -> t -> Say p
- sayWoman :: Twiml p t => String -> t -> Say p
- sayWoman' :: Twiml p t => Lang -> String -> t -> Say p
- sayAlice :: Twiml p t => String -> t -> Say p
- sayAlice' :: Twiml p t => LangAlice -> String -> t -> Say p
- data SayAttributes = SayAttributes {}
- defaultSayAttributes :: SayAttributes
- sayAttributes :: Lens' (Say p) SayAttributes
- voice :: Lens (Say p) (Say p) (Maybe Voice) Voice
- loop :: HasLoop t => Lens t t (Maybe Natural) Natural
<Say>
This example
module Example where import Text.XML.Twiml example = respond . sayWoman' French "Chapeau" $ end
produces the following TwiML response:
<?xml version="1.0" encoding="UTF-8"?> <Response> <Say voice="woman" language="fr">Chapeau</Say> </Response>
Constructors
Attributes
data SayAttributes Source
Lenses
sayAttributes :: Lens' (Say p) SayAttributesSource