Is there a way to load definitions into the repl from a file? Like in the Haskell repl where you can do ghci> :load myFile.hs
I am pretty sure we don't have that yet
It does seem like a good feature, I'll make an issue unless anyone objects.
@Isaac Van Doren as a temporary workaround I do think you can copy and paste the contents of the file.
in Elm, this Just Works automatically when you load up the repl (based on the directory you're in)
so the Roc equivalent would be that when you open the repl we load main.roc
(and would accept a CLI arg to specify a different .roc file) and then make everything importable according to what main.roc
specifies
Last updated: Jul 05 2025 at 12:14 UTC