Skip to content

A back-door for lifting of possibly failing actions #4

@nikita-volkov

Description

@nikita-volkov

Since Parser has no instance of Monad, the following function would be useful for lifting other parsers (like Attoparsec):

mapWithFailure :: (a -> Either String b) -> Parser a -> Parser b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions