haskelly-dev / Haskelly

Haskelly is a VS Code extension that provides complete support for casual and expert Haskell development.
https://marketplace.visualstudio.com/items?itemName=UCL.haskelly
GNU General Public License v3.0
152 stars 17 forks source link

Use different ghci command #78

Open Genora51 opened 6 years ago

Genora51 commented 6 years ago

The Load GHCi button currently runs stack ghci, but when run outside a stack project, this warning is output:

Warning: No local targets specified, so ghci will not use any options from your package.yaml / *.cabal files.

         Potential ways to resolve this:
         * If you want to use the package.yaml / *.cabal package in the current directory, use stack init to create a new stack.yaml.
         * Add to the 'packages' field of /Users/geno/.stack/global-project/stack.yaml

Should the command run instead be stack exec -- ghci?

matobet commented 4 years ago

Ideally the ghci command should be configurable so this could be overridden for projects that use plain Cabal.