Function: haskell-cabal-map-component-type

haskell-cabal-map-component-type is a natively compiled function defined in haskell-cabal.el.

Signature

(haskell-cabal-map-component-type COMPONENT-TYPE)

Documentation

Map from cabal file COMPONENT-TYPE to build command component-type.

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-map-component-type (component-type)
  "Map from cabal file COMPONENT-TYPE to build command component-type."
  (let ((component-type (downcase component-type)))
    (cond ((equal component-type "executable") "exe")
          ((equal component-type "test-suite") "test")
          ((equal component-type "benchmark")  "bench"))))