twilio-0.3.0.0: Twilio REST API library for Haskell

Copyright(C) 2017- Mark Andrus Roberts
LicenseBSD-style (see the file LICENSE)
MaintainerMark Andrus Roberts <markandrusroberts@gmail.com>
Stabilityprovisional
Safe HaskellNone
LanguageHaskell98

Twilio.Internal.Parser

Description

 

Synopsis

Documentation

(<&>) :: Functor f => f a -> (a -> b) -> f b #

maybeReturn' :: Maybe (Maybe a) -> Parser (Maybe a) #

maybeReturn'' :: Maybe (Maybe (Maybe a)) -> Parser (Maybe a) #

filterEmpty :: Text -> Maybe Text #

parseDate :: MonadPlus m => Text -> m UTCTime #

parseDateTime :: MonadPlus m => Text -> m UTCTime #

maybeReturn :: MonadPlus m => Maybe a -> m a #

newtype NonEmptyText #

Constructors

NonEmptyText 

Fields

Instances

FromJSON NonEmptyText # 

Methods

parseJSON :: Value -> Parser NonEmptyText

parseJSONList :: Value -> Parser [NonEmptyText]

parseMaybeDateTime :: Maybe Text -> Parser (Maybe UTCTime) #

Note that the parser only returns Nothing if the input is Nothing. If the input is an incorrectly formatted Text the parse will fail.

valueToText :: Value -> Maybe Text #