Function: haskell-string-trim-prefix

haskell-string-trim-prefix is a natively compiled function defined in haskell-string.el.

Signature

(haskell-string-trim-prefix PREFIX STR)

Documentation

If PREFIX is prefix of STR, the string is trimmed.

Source Code

;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-string.el
(defun haskell-string-trim-prefix (prefix str)
  "If PREFIX is prefix of STR, the string is trimmed."
  (when (and (stringp prefix)
             (stringp str))
    (if (string-prefix-p prefix str)
        (substring str (length prefix)))))