I'm trying to run a command interactively from my build script:
#!/usr/bin/env stack
{- stack
script
--resolver lts-18.8
--ghc-options -Wall
-}
import Development.Shake
main :: IO ()
main = shakeArgs shakeOptions $ do
phony "cfg" $ do
command_ [] "vim" []
But it does not work. I suppose I need to allocate a terminal to be able to run vim interactively. How can I do that?