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?
I would like to see what
stackis doing when it's running a script but it currently refuses:Take
turtle.hs:stack -v turtle.hsisn't even valid syntax:Is there a reason why we can't override script options by passing them to
stack <options> script?