Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

enable syntax check on save in literate haskell mode #389

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion elisp/ghc.el
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
(setq ghc-initialized t)
(defadvice save-buffer (after ghc-check-syntax-on-save activate)
"Check syntax with GHC when a haskell-mode buffer is saved."
(when (eq 'haskell-mode major-mode) (ghc-check-syntax))))
(when (member major-mode '(haskell-mode literate-haskell-mode))
(ghc-check-syntax))))
(ghc-import-module)
(ghc-check-syntax))

Expand Down