commercialhaskell / commercialhaskell/stack

No debug output with `-v` in interpreter mode

Open
#2,343 9 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.