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

stopWatching does not return #7

Open
BebeSparkelSparkel opened this issue Dec 5, 2022 · 0 comments
Open

stopWatching does not return #7

BebeSparkelSparkel opened this issue Dec 5, 2022 · 0 comments

Comments

@BebeSparkelSparkel
Copy link

I have noticed that stopWatching does not return until there is another change to the watched file. This does not seem to be the proper behavior.

% cabal repl
\> w <- watchFile "LICENSE" print
\> stopWatching w >> putStrLn "done"

However, watchFile "LICENSE" print >>= \w -> stopWatching w >> putStrLn "done" does finish without a change to the file. Not sure why there is a difference.

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

1 participant