doomemacs/modules/lang/haskell/packages.el
2017-03-28 16:22:41 -04:00

21 lines
595 B
EmacsLisp

;; -*- no-byte-compile: t; -*-
;;; lang/haskell/packages.el
(package! haskell-mode)
(package! dante)
;;
(def-bootstrap! haskell
(pcase (doom-system-os)
('arch
(let ((pkgs (cl-remove-if 'executable-find '("ghc" "happy" "alex"))))
(unless (executable-find "cabal")
(push "cabal-install" pkgs))
(sudo "pacman --noconfirm -S ghc cabal-install happy alex" (s-join " " pkgs))))
('debian) ;; TODO
('macos
(unless (executable-find "ghc")
(sh "brew install ghc"))
(unless (executable-find "cabal")
(sh "brew install cabal-install")))))