commercialhaskell / commercialhaskell/stack
No debug output with `-v` in interpreter mode
Open
awaiting pull request
component: script interpreter
type: bug
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
I would like to see what `stack` is doing when it's running a script but it currently refuses:
Take `turtle.hs`:
```
#!/usr/bin/env stack
-- stack -v --resolver lts-6.6 --install-ghc runghc --package turtle
{-# LANGUAGE OverloadedStrings #-}
import Turtle
main = echo "Hello World!"
```
```
~ $ ./turtle.hs
~ $ ./turtle.hs
Completed 5 action(s).
Hello World!
```
`stack -v turtle.hs` isn't even valid syntax:
```
~ $ stack -v turtle.hs
Invalid argument `turtle.hs'
File does not exist or is not a regular file `-v'
```
Is there a reason why we can't override script options by passing them to `stack script`?
Contributor guide
Assessment
This issue has not been assessed yet.