Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Confirm document browsing on function/type symbols #117

konn opened this Issue Apr 4, 2013 · 4 comments


None yet
2 participants

konn commented Apr 4, 2013

When I hit C-M-d on function symbols, ghc-mod immediately opens the corresponding document on the browser.

However, this sometimes causes unexpected behaviour: when I want to browse the document of certain module, I have to move the cursor away from current function symbols or ghc-mod opens unexpected document.

So I think it would be better to confirm the symbol to search document before open it also for function and type symbols. In addition, it is often the case that there are many modules providing the functions with same name, so I think it would be better to enable module confirmation if there are more than one candidates, same as the case of module name.

I also noticed that another odd behaviour of document browsing feature: when I hit M-C-d on comment line, ghc-mod sometimes immediately opens a certain document instead of asking module name.


kazu-yamamoto commented May 20, 2013

Done for confirming expression.

I have no idea on the last bug. Please give me an example.


konn commented May 20, 2013


For the latter case,

module Main where

main :: IO ()
main = putStrLn "foobar"

-- putStrLn 

If I put the cursor on putLine and hit M-C-d, then ghc-mod opens System.IO's document immediately.


kazu-yamamoto commented May 21, 2013

I guess that you meant putStrLn. In my environment, M-C-d chooses putStrLn.

@kazu-yamamoto kazu-yamamoto self-assigned this Mar 26, 2014


kazu-yamamoto commented Mar 30, 2014

I would close this issue. Please reopen if the same bug exists in ghc-mod 4.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment