Function: haskell-string-take

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

Signature

(haskell-string-take STRING N)

Documentation

Return (up to) N character length prefix of STRING.

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-take (string n)
  "Return (up to) N character length prefix of STRING."
  (substring string 0 (min (length string) n)))