atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Recompiling only on demand #117

Closed trin-cz closed 8 years ago

trin-cz commented 8 years ago

Hi, when I try to rewrite some code or make a bigger change, haskell-ghc-mod starts recompiling immediately, even though the compilation has no chance to succeed.

Would it be possible to choose to trigger the recompilation explicitly somehow - with a keybinding perhaps?

lierdakil commented 8 years ago

There is no "recompilation" going on, just parsing and type-checking. So I'm not sure I understand your question correctly. Anyway, you can disable "check on save" and "check on change" in haskell-ghc-mod settings. You can explicitly call check action from command palette, 'Haskell IDE' menu (if you're using ide-haskell), or assign keybindings using Atom's keymap file. See https://github.com/atom-haskell/haskell-ghc-mod#keybindings

trin-cz commented 8 years ago

I see. Yes, by recompilation I meant parsing and type-checking. For some reason the "Settings" part of the haskell-ghc-mod package page was not being displayed. I see it now. Probably not fault of haskell-ghc-mod. We can close this. Thank you.