Open
Description
With recent versions of GHC, the :info name command returns a module name in quotes that are unicode characters (in particular x2018 ‘ and x2019 ’). The matching in haskell-mode-find-def
only has the ASCII `' quotes.
In line 443 in the current HEAD
(string-match "`\\(.+?\\):\\(.+?\\)'$" defined)
could be changed to
(string-match "[`‘]\\(.+?\\):\\(.+?\\)['’]$" defined)
and in line 448 in the current HEAD
(string-match "`\\(.+?\\)'$" defined))
could be changed to
(string-match "[`‘]\\(.+?\\)['’]$" defined)
When making these changes only, haskell-mode-find-def
now works, whereas before it returned nil
.
Metadata
Metadata
Assignees
Labels
No labels