Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading type of runCancelT #122

Open
osa1 opened this issue Aug 1, 2015 · 0 comments
Open

Misleading type of runCancelT #122

osa1 opened this issue Aug 1, 2015 · 0 comments
Milestone

Comments

@osa1
Copy link
Member

osa1 commented Aug 1, 2015

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)

@rrnewton rrnewton modified the milestone: 2.0 Release May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants