Function: haskell-spanable-pos-at-point
haskell-spanable-pos-at-point is a natively compiled function defined
in haskell-mode.el.
Signature
(haskell-spanable-pos-at-point)
Documentation
Like haskell-ident-pos-at-point, but includes any surrounding backticks.
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-mode.el
(defun haskell-spanable-pos-at-point ()
"Like `haskell-ident-pos-at-point', but includes any surrounding backticks."
(save-excursion
(let ((pos (haskell-ident-pos-at-point)))
(when pos
(cl-destructuring-bind (start . end) pos
(if (and (eq ?` (char-before start))
(eq ?` (char-after end)))
(cons (- start 1) (+ end 1))
(cons start end)))))))