Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PureScript - How to reload a module in psci?

Tags:

Is there a way to reload a module or all modules in PureScript's REPL? If I make a change to a module, I've got to :quit and then import all the modules I'm working with each time.

like image 207
at. Avatar asked Feb 20 '17 23:02

at.


People also ask

What is PSCi in PureScript?

PSCi "PureScript Interactive" is the REPL for PureScript. It is often a good way to explore your code, do some basic testing, or to get a feel for a new library.


1 Answers

You can use :r or :reset, but you would still need to import modules again. We have plans to try to make that simpler, by allowing PSCi configuration files with a default set of imports to use on load.

Another option is to define your own module with the reexports that you need. Then you only need to do a reload followed by one import.

like image 145
Phil Freeman Avatar answered Sep 22 '22 10:09

Phil Freeman