-
Notifications
You must be signed in to change notification settings - Fork 108
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
Generalize hunit assertions to MonadIO? #320
Labels
Comments
My main concern would be mainly introducing ambiguous types, esp. if it breaks existing code. It should be fine with the "standard" usage of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Curious what people's thoughts are on making
tasty-hunit
functions work on anyMonadIO
. It's not uncommon for me to write hunit tests with assertions interspersed through my monadic code, e.g.It would be a minor improvement to be able to do simply
I'm willing to open a PR; the only downside I can see is making the Haddock docs a bit less straightforward (instead of returning a simple
Assertion
, it would now returnMonadIO m => m ()
).The text was updated successfully, but these errors were encountered: