I wonder if a typical ghci workflow can be automated with sos.
Usually you run a ghci process and:
- When
*.hs changes, you send :r<CR> or possibly :r<CR>:main<CR> to ghci
- When
*.cabal or *.yaml changes, you restart ghci
- Also you're able to type stuff into currently running ghci
Right now 2. is working perfectly, 3. works kind of weird (I'm not even sure how to describe it) and 1. is not covered at all.
Meanwhile, ghcid supports 1 and 2, but not 3 (by current design) and naturally only supports ghci. Ideally I'd like to be able to use sos to automate a REPL workflow for any language, e.g. restart the process on project.clj changes and send (run-all-tests)<CR> on other changes.
I wonder if a typical ghci workflow can be automated with sos.
Usually you run a ghci process and:
*.hschanges, you send:r<CR>or possibly:r<CR>:main<CR>to ghci*.cabalor*.yamlchanges, you restart ghciRight now 2. is working perfectly, 3. works kind of weird (I'm not even sure how to describe it) and 1. is not covered at all.
Meanwhile, ghcid supports 1 and 2, but not 3 (by current design) and naturally only supports ghci. Ideally I'd like to be able to use sos to automate a REPL workflow for any language, e.g. restart the process on
project.cljchanges and send(run-all-tests)<CR>on other changes.