curry.tools.icy.repl module
- class curry.tools.icy.repl.REPL(args, **kwds)[source]
Bases:
objectA Curry read-eval-print loop.
- switch_backend(backend)[source]
Reloads the interpreter with
backend(the setter of the option backend), records the backend in the options, and loads the module of the session again, so that the prompt and the expressions see the new interpreter. A reload replaces the Curry path; the load puts the directory of the module back. When that load fails, the session stays on the new backend with the Prelude at the prompt, keeps the argument of the last :load for a switch back, and reports the error.