Function: haskell-auto-insert-module-template
haskell-auto-insert-module-template is an interactive and natively
compiled function defined in haskell-mode.el.
Signature
(haskell-auto-insert-module-template)
Documentation
Insert a module template for the newly created buffer.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-mode.el
(defun haskell-auto-insert-module-template ()
"Insert a module template for the newly created buffer."
(interactive)
(when (and (= (point-min)
(point-max))
(buffer-file-name))
(insert (format haskell-auto-insert-module-format-string (haskell-guess-module-name-from-file-name (buffer-file-name))))
(goto-char (point-min))
(end-of-line)))