I was thinking about my ideal haskell editing workflow:
- I open three terminals (split using iterm2).
- Terminal 1 runs vim for editing the haskell source files.
- Terminal 2 automatically runs hlint on the changed files whenenver a file in the current directory or subdirectory updates or is created
- Terminal 3 runs ghci, automatically loading/reloading the changed files.
Has anyone set up anything like this? The goal is to have hlint constantly watch my code for styling problems and for ghci be available for quick changes, without having to do anything other than saving the file in vim.
I was thinking of using something like watchr for the automation.