Elm REPL Worker

March 23, 2025 ยท View on GitHub


What Is It?

An Elm Platform.worker that runs elm repl internally. It communicates with your app via ports.

The REPL uses a port of the Elm compiler from Haskell to Elm.

For more information see the recording of the August 2024 Elm Online Meetup:
https://www.youtube.com/watch?v=OK9S_HUdReA.


How to Use It?

Compile the Worker

make

or

elm make src/Repl/Worker.elm --output dist/worker.js

Add It to Your App

In branch clients there are examples for adding the REPL worker to an Elm app: