-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Semi-breaking changes: * runInterpreter and the corresponding functions from Language.Haskell.Interpreter.Unsafe no longer overwrite the program-wide Ctrl-C signal handler to throw a UserInterrupt exception to the calling thread. As bug #51 indicates, this behaviour is surprising and is probably not what the user wants. If you have been relying on this behaviour, you should now install your own signal handler, otherwise the second Ctrl-C will terminate your entire program instead of just the interpreted expression. Other changes: * added a version of GHC.runGhcT which does not call withSignalHandlers and thus does not overwrite the Ctrl-C signal handler * adjusted the documentation of 'runInterpreter' accordingly * extended the test suite to support tests which need to run IO code before and/or after the Interpreter block * added a unit test Fixes #51
- Loading branch information
Showing
4 changed files
with
99 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GHC.withCleanupSession
doesn't appear to exist in ghc 8.0.1. Do you still intend to support that version?