Skip to content

Add MonadYield #170

@sjshuck

Description

@sjshuck
class (Monad m) => MonadYield o m | m -> o where
    yield :: o -> m ()

pipes and conduit could have instances. It shouldn't be added here however until another more basic instance exists in transformers, which would be useful anyway since those two packages require mmorph and mono-traversable, respectively. Consider this issue also a discussion for the transformers instance.

@snoyberg has opined about the need for a more central streaming abstraction in this blog post. What are people's thoughts about a streaming type in the core libraries? In base?

cc @Gabriella439

Metadata

Metadata

Assignees

No one assigned

    Labels

    transformersBlocked on upstream transformers change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions