 
   (with-eval-after-load 'yasnippet (haskell-snippets-initialize)))
 
+;; doesn't support literate-haskell-mode :(
 (defun haskell/init-hindent ()
   (use-package hindent
     :defer t

  (use-package cmm-mode
    :defer t))

(when (configuration-layer/layer-usedp 'spacemacs-helm)
  (defun haskell/init-helm-hoogle ()
    (use-package helm-hoogle
      :defer t
      :init
      (spacemacs/set-leader-keys-for-major-mode 'haskell-mode "hf" 'helm-hoogle))))

(defun haskell/post-init-flycheck ()
  (spacemacs/add-flycheck-hook 'haskell-mode))

            (haskell-mode-show-type-at 1)
          (haskell-process-do-type 1)))

      (dolist (mode haskell-modes)
        (spacemacs/set-leader-keys-for-major-mode mode
          "gg"  'haskell-mode-jump-to-def-or-tag
          "gi"  'haskell-navigate-imports
          "f"   'haskell-mode-stylish-buffer

          "sb"  'haskell-process-load-file
          "sc"  'haskell-interactive-mode-clear
          "ss"  'spacemacs/haskell-interactive-bring
          "sS"  'haskell-interactive-switch

          "ca"  'haskell-process-cabal
          "cb"  'haskell-process-cabal-build
          "cc"  'haskell-compile
          "cv"  'haskell-cabal-visit-file

          "hd"  'inferior-haskell-find-haddock
          "hh"  'hoogle
          "hH"  'haskell-hoogle-lookup-from-local
          "hi"  (lookup-key haskell-mode-map (kbd "C-c TAB"))
          "ht"  (lookup-key haskell-mode-map (kbd "C-c C-t"))
          "hT"  'spacemacs/haskell-process-do-type-on-prev-line
          "hy"  'hayoo

          "dd"  'haskell-debug
          "db"  'haskell-debug/break-on-function
          "dn"  'haskell-debug/next
          "dN"  'haskell-debug/previous
          "dB"  'haskell-debug/delete
          "dc"  'haskell-debug/continue
          "da"  'haskell-debug/abandon
          "dr"  'haskell-debug/refresh))

      ;; configure C-c C-l so it doesn't throw any errors
      (bind-key "C-c C-l" 'haskell-process-load-file haskell-mode-map)
