Import completion for packages does not work for stack project
Jan129 opened this issue · comments
Jan129 commented
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
Nikolay Yakimov commented
Some reasons why this might not work:
- 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. - 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)
- 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.
Nikolay Yakimov commented
Closing due to no activity