-
Notifications
You must be signed in to change notification settings - Fork 12
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
add tasty integration notes #321
Conversation
docs/tasty-integration.md
Outdated
If you add a new test file, the top level [tasty-discover](https://hackage.haskell.org/package/tasty-discover) | ||
module will not have it set up as a dependency, so will not be reloaded until you restart the `ghciwatch` process. [tasty-autocollect](https://hackage.haskell.org/package/tasty-autocollect) relies on a compiler plugin and seems to avoid | ||
this problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be true - if ghciwatch
sees an edit to the file that uses tasty-discover
(or any other file that is a dependency of that module), then the GHC preprocessor plugin will run and include the newly created test file. You shouldn't need to restart ghciwatch.
docs/tasty-integration.md
Outdated
bubblewrap :: IO () -> IO () | ||
bubblewrap io = do | ||
try io :: IO (Either SomeException ()) | ||
hSetBuffering stdout NoBuffering |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is tasty changing the buffering mode? I'm curious if the benefit here is to set the NoBuffering
mode, or if the benefit is just that we're flushing the buffer
OK, I rewrote this a little. I'm going to merge it now, let me know if you don't like any of my changes and we can sort it out. Also please try writing the top-level |
patch
,minor
, ormajor
to request a version bump when it's merged. (N/A, docs-only)docs/
.tests/
. (N/A, docs-only)