ghc-mod
ghc-mod copied to clipboard
auto-complete the qualified module
I'm using ghc-mod version 4.1.5 with Emacs 24.3.1's ghc.el.
Sometimes, I want to get the list of function in the module which is imported using qualified.
import qualified Control.Monad as CM
test = CM.m<press TAB here>
In this case, I want to get the list of function which is included in Control.Monad and starts with m (i.e. mapM , mapM_ , mapAndUnzipM ) .
Is this possible? Other completion such as module name or function is working.
To implement it, we need to change the current code drastically. First, we need to understand how GHCi implements it and then modify ghc-modi to give us such suggestions. Anyway, I keep this in mind.