ghc-mod
ghc-mod copied to clipboard
Cannot get info from qualified symbol name in the Emacs
When using Emacs, try to browser symbol like "CC.conduitGet". It won't give right answer.
% check /home/haiwei/shared/projects/protobuff-conduit/src/Lib.hs O: ("src/Lib.hs:102:12:Not in scope: ‘conduitGet’ O: Perhaps you meant one of these: O: ‘CC.conduitGet’ (imported from Data.Conduit.Cereal), O: ‘CC.conduitGet2’ (imported from Data.Conduit.Cereal), O: ‘CC.conduitPut’ (imported from Data.Conduit.Cereal)") O: OK
To migrate this error, I used the package thingatpt+ and redefined ghc-things-at-point.
(defun ghc-things-at-point ()
(tap-symbol-name-at-point))
I think this is the same issue as https://github.com/DanielG/ghc-mod/issues/432, never got around to fixing that unfortunately.