Safe Haskell | None |
---|
- data Reject p
- reject :: p :/~ Gather' => End p -> Reject p
- reject' :: p :/~ Gather' => RejectAttributes -> End p -> Reject p
- data RejectAttributes = RejectAttributes {}
- defaultRejectAttributes :: RejectAttributes
- rejectAttributes :: Lens' (Reject p) RejectAttributes
- reason :: Lens (Reject p) (Reject p) (Maybe Reason) Reason
<Reject>
This example
module Example where import Control.Lens import Text.XML.Twiml example = respond . (reject <&> reason .~ Busy) $ end
produces the following TwiML response:
<?xml version="1.0" encoding="UTF-8"?> <Response> <Reject reason="busy" /> </Response>
Constructors
Attributes
data RejectAttributes Source