Skip to content

Commit

Permalink
Fix internal GHC module translation
Browse files Browse the repository at this point in the history
Join the module and ident before trying to translate, and split them
back apart again after translating.
  • Loading branch information
brandonw committed Nov 12, 2013
1 parent 9b1025a commit 53a63a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inf-haskell.el
Expand Up @@ -771,9 +771,11 @@ we load it."
(format "Find documentation of (default %s): " sym)
"Find documentation of: ")
nil nil sym))))
(setq sym (inferior-haskell-map-internal-ghc-ident sym))
(let* (;; Find the module and look it up in the alist
(module (inferior-haskell-get-module sym))
(full-name (inferior-haskell-map-internal-ghc-ident (concat module "." sym)))
(module (file-name-base full-name))
(sym (file-name-extension full-name))
(alist-record (assoc module (inferior-haskell-module-alist)))
(package (nth 1 alist-record))
(file-name (concat (subst-char-in-string ?. ?- module) ".html"))
Expand Down

0 comments on commit 53a63a1

Please sign in to comment.