Skip to content

Feature request: support REPLish workflow #35

Description

@ethercrow

I wonder if a typical ghci workflow can be automated with sos.

Usually you run a ghci process and:

  1. When *.hs changes, you send :r<CR> or possibly :r<CR>:main<CR> to ghci
  2. When *.cabal or *.yaml changes, you restart ghci
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions