ghc-mod
ghc-mod copied to clipboard
enable syntax check on save in literate haskell mode
In my environment, when emacs is in literate-haskell-mode, syntax checks doesn't work on saving a file.
I think this small fix will activate ghc-chck-syntax in literate-haskell-mode.
Could you pull it?
Any reason you closed this request? I was just holding off merging it until I come around to looking at the elisp stuff again, which I had to postpone because university is keeping me busy.
@kazu-yamamoto do we still need this PR?
I think we can accept this pull request if @kiripon wishes.
Well I'm more asking does it look like it's going to break something ;)
I don't think that this breaks something.
Just curious.
Is there any reason to use defadvice instead of after-save-hook?
No. I did not hit upon after-save-hook when I implemented it.
BTW, now #550 is implemented. So, we don't have to save the buffer at all anymore. Should we provide a new key-binding to check syntax?