[Haskell-cafe] ghc-mod-5.4.0.0 and stack

Michal Antkiewicz mantkiew at gsd.uwaterloo.ca
Fri Sep 18 15:36:42 UTC 2015


In the ANN announcement email [1] it says:

"* Stack support

  After countless requests ghc-mod now finally has first class Stack
  support. This should mostly Just-Work^TM there is one caveat though if
  `dist/setup-config` exists in a Cabal-project directory ghc-mod will
continue
  using cabal-install instead of Stack so if you want to use Stack instead
  simply remove that file or the whole directory. You also need at least
Stack
  version 0.1.4.0 for this to work."

Michał

[1]
https://mail.haskell.org/pipermail/haskell-cafe/2015-September/121412.html

On Fri, Sep 18, 2015 at 11:28 AM, Denis Shevchenko <haskell at dshevchenko.biz>
wrote:

> Hi!
>
> I try to use last ghc-mod with stack. In Changelog (
> https://hackage.haskell.org/package/ghc-mod-5.4.0.0/changelog) I read:
>
> * Add support for the Stack build tool
>
> And I see new option:
>
>     --with-stack=PATH
>         stack executable to use
>
> So I do:
>
> $ ghc-mod --with-stack=/usr/local/bin/stack check src/Main.hs
>
> But I got this error:
>
> ghc-mod: cabal: readCreateProcess: runInteractiveProcess: exec: does not
> exist (No such file or directory)
>
> I don't understand it. If I specify path to stack - why ghc-mod still try
> to use cabal-install? And if cabal-install is still required - why is this
> new option for??
>
> - Denis
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150918/99a99515/attachment.html>


More information about the Haskell-Cafe mailing list