Hi! I'm new to Roc and just going through the tutorial and I've been wondering if it's possible to "recreate" the context of the platform (e.g. cli) while in REPL.
I'm thinking of doing this either:
stack repl
Thanks in advance!
Chris
Hi @Krzysztof Kielak,
The REPL is not my area of expertise but it looks like you could modify the lines here to e.g use the basic-cli platform instead.
I don't think that is possible. I mean maybe you could hack the compiler to do it, but I don't think it would work (would fail to link/load).
Repl is really just made for pure code currently
Interesting.. I read that as like a platform or domain specific REPL. Is that a thing elsewhere? Maybe we could have platforms that provide REPL envrionment??
@Luke Boswell that exactly what I was actually trying to achieve to have the cli platform form say Http
module available at the REPL, so I could experiment with values reported from the web without the need for the edit/compile/run cycle
Last updated: Jul 05 2025 at 12:14 UTC