 
 (require 'hindent)
 (defun my-haskell-mode-hook ()
+  (hindent-mode)
+  (interactive-haskell-mode)
   ;; (ghc-init)
   (local-set-key "\C-c\C-s" 'hindent-reformat-buffer)
   (local-set-key "\M-q" 'hindent-reformat-decl-or-fill)

    (".#*" "*.o" "*~" "*.bin" "*.lbin" "*.so" "*.a" "*.ln" "*.blg" "*.bbl" "*.elc" "*.lof" "*.glo" "*.idx" "*.lot" "*.fmt" "*.tfm" "*.class" "*.fas" "*.lib" "*.mem" "*.x86f" "*.sparcf" "*.dfsl" "*.pfsl" "*.d64fsl" "*.p64fsl" "*.lx64fsl" "*.lx32fsl" "*.dx64fsl" "*.dx32fsl" "*.fx64fsl" "*.fx32fsl" "*.sx64fsl" "*.sx32fsl" "*.wx64fsl" "*.wx32fsl" "*.fasl" "*.ufsl" "*.fsl" "*.dxl" "*.lo" "*.la" "*.gmo" "*.mo" "*.toc" "*.aux" "*.cp" "*.fn" "*.ky" "*.pg" "*.tp" "*.vr" "*.cps" "*.fns" "*.kys" "*.pgs" "*.tps" "*.vrs" "*.pyc" "*.pyo" "*.sublime-workspace" "*_flymake*")))
 '(grep-find-template
   "find . <X> -type f <F> -exec grep <C> -nH -e <R> {} + | cut -c 1-300")
 '(haskell-compile-cabal-build-alt-command "cd %s && stack build")
 '(haskell-compile-cabal-build-command "cd %s && stack build")
 '(haskell-indentation-ifte-offset 2)
 '(haskell-indentation-layout-offset 2)
 '(haskell-indentation-left-offset 2)

  (define-key haskell-mode-map (kbd "C-c C-d") 'haskell-compile)
  (define-key haskell-mode-map (kbd "C-c C-x") 'intero-restart)
  (define-key haskell-process-cabal-build (kbd "C-c C-c") 'haskell-compile)
  ;; (local-set-key "\C-c\C-c" (lambda () (interactive) (haskell-compile)))
  ;; (intero-mode)
  ;; (define-key haskell-mode-map (kbd "C-c C-l") 'haskell-process-load-file)
  ;; (define-key haskell-mode-map (kbd "C-c C-t") 'haskell-process-do-type)
  ;; (define-key haskell-mode-map (kbd "C-c C-i") 'haskell-process-do-info)
