在这种情况下,ghc-mod无法找到安装在我的~/..ghc/目录中的模块。monad-loops-0.4.2.1x.hs:4:8:Could not find module ‘Control.Monad.Loopsmtl-2.1.3.1) Control.Monad.Trans (from mtl-2.1.3.1)Use -v to see a list of the files searched for.
ghc-mod位于~/Library
我正在尝试使用ghc-mod vim插件进行类型/语法检查等。但是,我发现ghc-mod总是在错误消息中使用类型的完整路径,例如:
test.hs|71 col 13 error| Couldn't match type ‘Data.Text.Internal.Text有没有办法让ghc-mod对类型使用短名称?