atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Additional source paths #46

Closed filmackay closed 8 years ago

filmackay commented 9 years ago

Is there a way with this add-in to supply additional source paths, like you do with "ghci -i" command-line?

lierdakil commented 9 years ago

Sure. Use cabal project, and specify additional source paths to your heart's content in project file.

lierdakil commented 8 years ago

Closing due to lack of activity

filmackay commented 8 years ago

follow-up: the issue I have is that ghc-mod seems to read source paths from the first section of the file, outside executable or library. Is this intended? I don't think you're meant to put anything in the 'global' section (?)

lierdakil commented 8 years ago

Sorry, this seems out of scope, since it's ghc-mod that handles this, not haskell-ghc-mod. You should probably raise this question at https://github.com/kazu-yamamoto/ghc-mod/issues.

That said, I don't think I ever encountered this problem. For example, https://github.com/lierdakil/pandoc-crossref/blob/master/pandoc-crossref.cabal has hs-source-dirs in respective Executable and Test-Suite sections, and it all "just works"