Function: haskell-cabal-comma-separatorp
haskell-cabal-comma-separatorp is a natively compiled function defined
in haskell-cabal.el.
Signature
(haskell-cabal-comma-separatorp POS)
Documentation
Return non-nil when the char at POS is a comma separator.
Characters that are not a comma, or commas inside a comment or string, are not comma separators.
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-cabal.el
(defun haskell-cabal-comma-separatorp (pos)
"Return non-nil when the char at POS is a comma separator.
Characters that are not a comma, or commas inside a comment or
string, are not comma separators."
(when (eq (char-after pos) ?,)
(let ((ss (syntax-ppss pos)))
(not
(or
;; inside a string
(nth 3 ss)
;; inside a comment
(nth 4 ss))))))