   (haskell-indentation-mode)
   (interactive-haskell-mode)
   (haskell-format-on-save-mode)
+
   ;; Override the indentation function.
   (setq-local indent-line-function #'indent-relative)
 

    (setq-local eglot-stay-out-of '(company company-backends))
    (eglot-ensure)
    (pjones:prog-mode-hook)
    (if (fboundp 'flycheck-mode)
        (flycheck-mode -1)))


  (define-key map (kbd "C-c M-e") #'pjones:hasky-extensions)
  (define-key map (kbd "C-c M-f") #'haskell-cabal-visit-file)
  (define-key map (kbd "C-c M-w") #'pjones:haskell-kill-module-name))

(let ((map interactive-haskell-mode-map))
  ; Use bindings from parent map:
  (define-key map (kbd "M-.") nil)
  (define-key map (kbd "C-c C-r") nil))

(reformatter-define haskell-format
  :program "ormolu"
