I find the repl invaluable for writing unit tests. I think about what I want to test, try it out in the repl, refine it for better generality, and then basically copy/paste it into a file full of unit tests.
1. write the basic test scaffolding
2. debug, stepping until I get to a point in the test that needs to change
3. modify the test code (and save, which hot-reloads)
4. move the execution point to before my change
5. GOTO 2.
There are some changes that can't be hot-reloaded, but I've been surprised and how flexible it is.