Skip to content

Commit

Permalink
Strip out M./S./L. typical module prefixes for suggestion functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Jan 20, 2014
1 parent 38e8c06 commit ab7ee92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion haskell-process.el
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,10 @@ file. Prompts the user before doing so."
"Given an out of scope identifier, Hoogle for that identifier,
and if a result comes back, suggest to import that identifier
now."
(let* ((ident (match-string 1 msg))
(let* ((ident (let ((i (match-string 1 msg)))
(if (string-match "^[A-Z]\\.\\(.+\\)$" i)
(match-string 1 i)
i)))
(modules (haskell-process-hoogle-ident ident))
(module (cond
((> (length modules) 1)
Expand Down

0 comments on commit ab7ee92

Please sign in to comment.