For example:
$ pulp init
$ pulp repl
<snip>
> :b Main
main :: forall e.
Eff
( console :: CONSOLE
| e
)
Unit
> -- now, in a separate window, add a new export to Main
> :reload
Compiling Main
> :b Main
main :: forall e.
Eff
( console :: CONSOLE
| e
)
Unit
Notice that the new export is not listed, despite Main having been compiled again.
I think the issue is here in Language.PureScript.Interactive as the new env is just being chucked away. Perhaps the fix is to move the env out of the PSCiConfig and into the PSCiState, since it can change over time? Or maybe the env can be computed on the fly when needed from the loaded externs?
For example:
Notice that the new export is not listed, despite Main having been compiled again.
I think the issue is here in Language.PureScript.Interactive as the new
envis just being chucked away. Perhaps the fix is to move theenvout of thePSCiConfigand into thePSCiState, since it can change over time? Or maybe theenvcan be computed on the fly when needed from the loaded externs?