Hi there, another newbie question
According to the purescript book:
Note that asynchronous logging in the repl just waits to print until the entire block has finished executing. This code behaves more predictably when run with
spago testwhere there is a slight delay between prints.
I don’t really understand the design decision to make the repl wait to print all. For a newbie like me makes it difficult to debug purescript async code in the repl.
I know that, once built, this little program:
sleep3s :: Aff Unit sleep3s = delay $ Milliseconds 3000.0 program :: Effect Unit program = launchAff_ do log "waiting" sleep3s log "done waiting"
Behaves as it should. Therefore, how can I reproduce the same behaviour in the repl?