Skip to content

No debug output with -v in interpreter mode #2343

@sjakobi

Description

@sjakobi

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'
<snip>

Is there a reason why we can't override script options by passing them to stack <options> script?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions