Copyright | (C) 2017- Mark Andrus Roberts |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Mark Andrus Roberts <markandrusroberts@gmail.com> |
Stability | provisional |
Safe Haskell | None |
Language | Haskell98 |
Twilio.Internal.Parser
Description
- (<&>) :: 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 = NonEmptyText {
- getNonEmptyText :: Maybe Text
- parseMaybeDateTime :: Maybe Text -> Parser (Maybe UTCTime)
- valueToText :: Value -> Maybe Text
Documentation
maybeReturn' :: Maybe (Maybe a) -> Parser (Maybe a) #
filterEmpty :: Text -> Maybe Text #
parseDateTime :: MonadPlus m => Text -> m UTCTime #
maybeReturn :: MonadPlus m => Maybe a -> m a #
newtype NonEmptyText #
Constructors
NonEmptyText | |
Fields
|
Instances
FromJSON 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 #