Function: haskell-cabal-sort-lines-depends-compare
haskell-cabal-sort-lines-depends-compare is a natively compiled
function defined in haskell-cabal.el.
Signature
(haskell-cabal-sort-lines-depends-compare KEY1 KEY2)
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-sort-lines-depends-compare (key1 key2)
(let* ((key1str (buffer-substring (car key1) (cdr key1)))
(key2str (buffer-substring (car key2) (cdr key2)))
(base-regex "^[ \t]*base\\($\\|[^[:alnum:]-]\\)"))
(cond
((string-match base-regex key1str) t)
((string-match base-regex key2str) nil)
(t (string< key1str key2str)))))