forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrict commands allowed in interpreter mode
Stack interpreter comment annotation allows arbitrary commands to be written and executed when the file is run. It can lead to confusing and surprising behavior if mistakes are made in writing a proper comment. This change restricts the interpreter mode commands to runghc and runhaskell. This change moves add-commands to a separate function. Closes commercialhaskell#1504
- Loading branch information
1 parent
8e5b5f3
commit e43d6bf
Showing
3 changed files
with
280 additions
and
295 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
Oops, something went wrong.