atom-haskell / ide-haskell

Haskell IDE plugin for Atom editor

Home Page:https://atom.io/packages/ide-haskell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import completion for packages does not work for stack project

Jan129 opened this issue · comments

I use atom and haskell-ide on macosx. After having installed a package e.g. Yampa (with stack : "stack install Yampa") I see that there is no import completion for Yampa (package Yampa is not recognised) when working on Main.hs file of my stack project.

Does anyone using macosx have problems with Haskell plugin for atom?

Thx
Jan

Some reasons why this might not work:

  1. If you stack install something with Atom open, it might take a while before autocompletion cache is invalidated -- you can restart Atom (cmd-alt-r or something like that) to force it.
  2. If you don't have a package listed as a dependency in cabal file, it's not considered for autocompletion (due to it being hidden -- that's just how cabal works)
  3. If you don't have a cabal file, it's assumed you're working on 'plain' project -- which means only system GHC and packages are available, so no stack-installed packages.

Closing due to no activity