LANGUAGES Signal 252 2 feeds carried it
Author combines Haskell Language Server, ghcid, and foreign-store to approximate Lisp-style live programming
Illustration only Photo by iMattSmart on Unsplash
An author describes adopting Haskell Language Server, ghcid, and foreign-store to approximate the Lisp-style live programming workflow in Haskell.
This combination lets Haskell developers maintain process state across recompilations, reducing the friction of the edit-compile-run cycle. However, it still cannot evaluate code in the REPL of a running program, so the Lisp experience remains only partially replicated.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
Haskell Language Server with Eglot provides code introspection that improves on a traditional compile-and-run workflow.
ghcid combined with foreign-store or Rapid can automatically recompile and restart programs while preserving process state.
The approach cannot evaluate code in the REPL of a running program, so unit tests are run on reload as a substitute.
THE CLUSTER