rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 96 forks source link

Can not initialize REPL when Haskell module is in subdirectory #637

Open majkrzak opened 3 years ago

majkrzak commented 3 years ago

I have project with structure:

foo/
  haskell-mod/
    stack.yaml
    ...
  other-mod/
    ...

In such case "Update Settings and restart REPL" does not work and crashes with:

/usr/local/bin/stack build --fast --no-interleaved-output --test --bench --no-run-tests --no-run-benchmarks --only-dependencies --ghc-options -fno-diagnostics-show-caret
Error parsing targets: The specified targets matched no packages.
Perhaps you need to run 'stack init'?
rikvdkleij commented 3 years ago

It's not supported. There can only be one stack.yaml per Haskell project and the stack.yaml has to be in the root of project.