Function: haskell-mode-try-kill-scc-at-point
haskell-mode-try-kill-scc-at-point is a natively compiled function
defined in haskell-mode.el.
Signature
(haskell-mode-try-kill-scc-at-point)
Documentation
Try to kill an SCC annotation at point. Return true if successful, nil otherwise.
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-mode.el
(defun haskell-mode-try-kill-scc-at-point ()
"Try to kill an SCC annotation at point. Return true if
successful, nil otherwise."
(save-excursion
(let ((old-point (point))
(scc "\\({-#[ \t]*SCC \"[^\"]*\"[ \t]*#-}\\)[ \t]*"))
(while (not (or (looking-at scc) (bolp)))
(forward-char -1))
(if (and (looking-at scc)
(<= (match-beginning 1) old-point)
(> (match-end 1) old-point))
(progn (kill-region (match-beginning 0) (match-end 0))
t)))))