ghc-mod icon indicating copy to clipboard operation
ghc-mod copied to clipboard

auto-complete the qualified module

Open pjmtdw opened this issue 12 years ago • 1 comments

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.

pjmtdw avatar Jul 18 '14 00:07 pjmtdw

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.

kazu-yamamoto avatar Jul 18 '14 04:07 kazu-yamamoto