tfausak / purple-yolk

:hatching_chick: A Haskell IDE for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=taylorfausak.purple-yolk
MIT License
26 stars 2 forks source link

Use Stack for non-project workspaces #83

Open tfausak opened 4 months ago

tfausak commented 4 months ago

Following on from #79.

It should be possible for Purple Yolk to use Stack to launch GHCi even when there isn't a stack.yaml file. This should only happen if stack is available but ghci isn't.

# before
ghci -ddump-json ${file}

# after
stack ghci --ghci-options -ddump-json ${file}

Also this shouldn't change when Cabal is selected. A Cabal doesn't have a similar sub-command to call since it doesn't manage GHC installations.