Function: haskell-cabal-compute-checksum
haskell-cabal-compute-checksum is a natively compiled function defined
in haskell-cabal.el.
Signature
(haskell-cabal-compute-checksum DIR)
Documentation
Compute MD5 checksum of package description file in DIR.
Return nil if no Cabal description file could be located via
haskell-cabal-find-pkg-desc.
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-compute-checksum (dir)
"Compute MD5 checksum of package description file in DIR.
Return nil if no Cabal description file could be located via
`haskell-cabal-find-pkg-desc'."
(let ((cabal-file (haskell-cabal-find-pkg-desc dir)))
(when cabal-file
(with-temp-buffer
(insert-file-contents cabal-file)
(md5 (buffer-string))))))