You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
imagine I'm contributing on a project with has a local .ghci files, i.e. a .ghci files in the project root.
Suppose this project hides a package and solves an ambiguity.
If I launch vim from the aforementioned directory, and ask vim-hsdevtools for the type of a function,
this is what I get:
Error loading targets
src/Snap/Snaplet/Internal/Lensed.hs:10:8:
Ambiguous module name `Control.Monad.CatchIO':
it was found in multiple packages:
MonadCatchIO-transformers-0.3.0.0 MonadCatchIO-mtl-0.3.0.5
The error would be fixed reading the proper option (i.e. hide package) from the local .gchi files, but hdevtools seems to ignore it.
Activity
bitc commentedon Oct 5, 2012
You can use the variable
g:hdevtools_optionsto configure ghc options. In your case you want-hide-packageSo set it to something like this:
Note that there is no space between
-gand the name of the package,transformersPut that line in your project's vimrc file, or in your global vimrc file.
adinapoli commentedon Oct 5, 2012
Thanks. Any chance to fix it programmatically exploiting the fact options you need are in a local .ghci file?
Cheers,
A.
jamesdbrock commentedon Aug 15, 2017
This hdevtools branch, if accepted, will give you the ability to put your GHC options in local
.hdevtoolsrcproject file. hdevtools/hdevtools#59