REPL and Swift Package Manager

I think there is a problem that doesn’t get much attention: two major Swift projects, Swift Package Manager and Swift REPL, having a really hard time working together. It is so tempting to use REPL with Swift PM built packages, but currently you still have to make an unnecessary big amount of movements for this:

This question was already raised previously:

And some effort was made, but, unfortunately, it wasn’t finished:

It would be so great to have the ability to just run swift build repl (which would configure everything and open up REPL ready for import) — it would open up great possibilities for prototyping, exploring and testing packages.


I agree that we should implement this but it is not a priority right now. Meanwhile, if someone from the community wants to take a stab at implementing this, I am happy to assist!