Skip to content

Misleading type of runCancelT #122

@osa1

Description

@osa1

Currently it has this type:

runCancelT :: ParMonad p => CancelT p e s a -> p e s a

From the type it seems like CancelT computation should always return an a, but that's not the case, for example:

runCancelT (cancelMe >> return a)

This shouldn't return anything. (I haven't tested it yet, so I don't know what's happening when this expression run using current version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions