Popularity
4.8
Declining
Activity
0.0
Stable
5
2
5

Monthly Downloads: 20
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Text     Web     XML    
Latest version: v0.2.1.0

twiml alternatives and similar packages

Based on the "Text" category.
Alternatively, view twiml alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of twiml or a related project?

Add another 'Text' Package

README

twiml

twiml on Hackage twiml-haskell on Travis CI

This package provides a library for constructing [TwiML](www.twilio.com/docs/api/twiml). Install using

$ cabal install twiml

Documentation is available through GitHub (for HEAD) or Hackage for the current and preceding releases.

For the Twilio REST API, see twilio-haskell.

Example

The following Haskell code

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

import Prelude
import Control.Lens
import Data.Default
import Text.XML.Twiml
import qualified Text.XML.Twiml.Syntax as Twiml

example :: VoiceTwiml
example =
  voiceResponse $ do
    say "Hello, world" $ def & voice .~ Man
    hangup
  where Twiml.Syntax{..} = def

is transformed into

<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Say voice="man">Hello, world</Say>
  <Hangup/>
</Response>

Contributing

Feel free to contribute to any of the open issues, bugfixes, etc. When you think you're ready to merge, ensure the tests are passing and open a pull request. If you are adding new functionality, please include new tests as well. Finally, add yourself to the AUTHORS file.