Add support for ghci to shebang system #2510
Comments
Interpreter does not allow commands other than runghc. I contemplated allowing ghci case in interpreter but was wondering if someone would need this and here you are. I will happily enable this. Another problem is that |
Cool! On Wed, Aug 17, 2016, 8:45 PM Harendra Kumar notifications@github.com
|
Fixed via commit d5b8c6e . Use |
Often, I want to send someone a small Haskell file to open in the interpreter for e.g. a bug report against a library or a StackOverflow answer. It'd be nice to be able to use the shebang system (or something like it) and have Stack open the file in ghci with the appropriate packages/GHC/etc in place. Concretely, this script
fails with
Changing
ghci
torunghc
runs it as expected. Runningstack ghci ~/junk/unbound-bug.hs
results inError parsing targets: Directory not found: /home/enolan/junk/unbound-bug.hs
regardless of if the file hasrunghc
orghci
in it. Ideally, bothstack ghci $FILENAME
and writingghci
instead ofrunghc
in the header comment would open the interpreter shell.Version 1.1.2, Git revision cebe10e845fed4420b6224d97dcabf20477bbd4b (3646 commits) x86_64 hpack-0.14.0
The text was updated successfully, but these errors were encountered: