Summary: I've released a new version of ghcid, which is faster and works better for Vim users.
I've just released version 0.4 of ghcid. For those who haven't tried it, it's the simplest/dumbest "IDE" that could possibly exist. It presents a small fixed-height console window that shows the active warnings/errors from
ghci, which is updated on every save. While that might not seem like much, there are a number of improvements over a standard workflow:
- You don't have to switch to a different window and hit
:reload, just saving in your editor is enough.
- It includes warnings from modules that successfully compiled previously, as opposed to
ghciwhich omits warnings from modules that didn't reload.
- It reformats the messages to the height of your console, so you can see several messages at once.
I find it gives me a significant productivity boost, and since there is no editor integration, it adds to my existing tools, rather than trying to replace them (unlike a real IDE).
Version 0.4 offers a few additional improvements:
- We use fsnotify to watch for changes, rather than polling as in older versions. The result is a significant decrease in battery usage, combined with faster responses to changes.
- If you change the
ghcidwill restart the
ghcisession to pick up the changes.
- If you are a Vim user, then the sequence of temporary files Vim uses on save could upset ghcid. I believe these issues are now all eliminated.
- The number of errors/warnings is displayed in the titlebar of the console.
- There is a feature to run a test after each successful save (using
--test). I am expecting this to be a niche feature, but feel free to prove me wrong.
Tempted to give it a try? See the README for details.