You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
place point before x and then use mark-sexp. The marked strings will be:
x
x Array.
x Array.! y
This is not correct behaviour for haskell-mode, because x Array. is not a meaningful haskell expression while x Array.! would be (in the sense of an operator slice, at least): this breaks navigation of haskell code by other emacs tools that rely on standard emacs functions such as forward-sexp.
As a possibility, haskell-mode could potentially provide its own forward-sexp-function that marks expressions suitable to haskell.
Also related is that haskell-ident-at-pos returns either Array, or Array., depending on where point is placed within Array.!, which is probably why documentation for Array.! is not displayed when point is on top of it. (The command given to ghci in process log is :info Array., which is wrong.) Ideally, after placing point on Array.!, eldoc-mode (or haskell-doc-mode) should show information about the operator Array.!.
The text was updated successfully, but these errors were encountered:
forward-sexp-function is not implemented, although there are traces in the comments that previous civilization had implemented haskell-doc-forward-sexp-safe. That got removed, as comments say, in Revision 1.6 2004/10/13 22:45:22 monnier.
haskell-ident-at-pos (and related thing-at-pos 'sexp) are a different matter.
In the following line
place point before
x
and then usemark-sexp
. The marked strings will be:This is not correct behaviour for haskell-mode, because
x Array.
is not a meaningful haskell expression whilex Array.!
would be (in the sense of an operator slice, at least): this breaks navigation of haskell code by other emacs tools that rely on standard emacs functions such asforward-sexp
.As a possibility, haskell-mode could potentially provide its own
forward-sexp-function
that marks expressions suitable to haskell.Also related is that
haskell-ident-at-pos
returns eitherArray
, orArray.
, depending on where point is placed withinArray.!
, which is probably why documentation forArray.!
is not displayed when point is on top of it. (The command given to ghci in process log is:info Array.
, which is wrong.) Ideally, after placing point onArray.!
,eldoc-mode
(orhaskell-doc-mode
) should show information about the operatorArray.!
.The text was updated successfully, but these errors were encountered: