Skip to content

liftMaybe, liftEither, liftExceptT #196

Closed
@jamesdbrock

Description

@jamesdbrock

“Validation Parsers”

liftMaybe :: forall s m a. Monad m => (Unit -> String) -> Maybe a -> ParserT s m a
liftEither :: forall s m a. Monad m => Either String a -> ParserT s m a
liftExceptT :: forall s m a. Monad m => ExceptT String m a -> ParserT s m a

Similar to
https://pursuit.purescript.org/packages/purescript-transformers/6.0.0/docs/Control.Monad.Error.Class#v:liftMaybe

Similar to
https://pursuit.purescript.org/packages/purescript-protobuf/2.1.2/docs/Protobuf.Library#v:parseMaybe

See also #84

See also https://pursuit.purescript.org/packages/purescript-lazy/6.0.0/docs/Data.Lazy

Or perhaps these should be called maybeParserT, eitherParserT, exceptParserT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions