;;; lang/haskell/+dante.el -*- lexical-binding: t; -*- (def-package! dante :after haskell-mode :init (add-hook! 'haskell-mode-hook #'(dante-mode interactive-haskell-mode)) :config (unless (executable-find "cabal") (warn "haskell-mode: couldn't find cabal") (remove-hook 'haskell-mode-hook #'dante-mode)) (add-hook 'dante-mode-hook #'flycheck-mode))