Skip to content

Why Alternative instances require MonadPlus? #83

@sjshuck

Description

@sjshuck

[original issue 78 by @Bodigrim]

Alternative instances are typically defined as

instance (Monoid w, Functor m, MonadPlus m) => Alternative (AccumT w m)

instead of more symmetric

instance (Monoid w, Alternative m, Monad m) => Alternative (AccumT w m)

Would a patch changing this be accepted?

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