Function: haskell-string-ellipsize
haskell-string-ellipsize is a natively compiled function defined in
haskell-string.el.
Signature
(haskell-string-ellipsize STRING N)
Documentation
Return STRING truncated to (at most) N characters.
If truncation occurred, last character in string is replaced by ….
See also haskell-string-take.
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-ellipsize (string n)
"Return STRING truncated to (at most) N characters.
If truncation occurred, last character in string is replaced by `…'.
See also `haskell-string-take'."
(cond
((<= (length string) n) string) ;; no truncation needed
((< n 1) "")
(t (concat (substring string 0 (1- n)) "…"))))