<div dir="ltr">Hi, Cafe!<div><br></div><div>I'm struggling to configure my emacs for haskell development with ghc-mod and auto-complete. It works well for the most part, but I've run into the issue when completing qualified names. In the following example I don't get any completion after BS:</div><div><br></div><div><div><div>        module Playground where</div><div><br></div><div>        import qualified Data.ByteString.Lazy as BL</div><div><br></div><div>        doWork :: BL.By -- no completion after dot </div></div></div><div><br></div><div>Completion for unqualified names and module name in imports works just fine.</div><div>Maybe someone has run into this issue before?</div><div><br></div><div>My .emacs:</div><div><div><span class="" style="white-space:pre">   </span>(ac-config-default)<br></div><div><span class="" style="white-space:pre">      </span>(auto-complete-mode t)</div><div><br></div><div><span class="" style="white-space:pre">    </span>(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)</div><div><br></div><div><span class="" style="white-space:pre">        </span>(autoload 'ghc-init "ghc" nil t)</div><div><span class="" style="white-space:pre">     </span>(add-hook 'haskell-mode-hook (lambda () (ghc-init)))</div><div><br></div><div><span class="" style="white-space:pre">  </span>(defun my-ac-haskell-mode ()</div><div><span class="" style="white-space:pre">       </span>  (setq ac-sources (append ac-sources '(ac-source-ghc-mod))))</div><div><br></div><div><span class="" style="white-space:pre">        </span>(add-hook 'haskell-mode-hook 'my-ac-haskell-mode)</div><div><span class="" style="white-space:pre">  </span>(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)</div><div><span class="" style="white-space:pre">    </span>(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)</div><div><br></div><div><span class="" style="white-space:pre">     </span>(ac-define-source ghc-mod</div><div><span class="" style="white-space:pre">  </span>  '((depends ghc)</div><div><span class="" style="white-space:pre">     </span>    (candidates . ghc-select-completion-symbol)</div><div><span class="" style="white-space:pre">  </span>    (symbol . "s")</div><div><span class="" style="white-space:pre">     </span>    (cache)))</div></div><div><br></div><div><div>--<br></div></div><div><div><div dir="ltr">Regards, Ilya Biryukov.</div></div>
</div></div>