Makes working with the SMLNJ interpreter a little bit more enjoyable by offering auto reloads, completions and history
- Rust 96.7%
- Standard ML 3.3%
|
|
||
|---|---|---|
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| main.sml | ||
| README.md | ||
| sources.cm | ||
smli
A simple program for hot-reloading sml definitions in the running repl instance without "use '..'" or reloading the instance by killing and starting it up again.
Installation
git clone https://git.purplebear.io/purplebear/smli-rs
cargo install --path .
Usage
smli <sml_file>
Reload
You can reload the entire repl instance by pressing CTRL+C. This will replace the current repl instance
with a new one, effectively purging all definitions except the ones from the source file <sml_file>.
This is effectively the same as killing the instance with CTRL+D and then running it again.
The other type of reload only reloads the source file definitions which happens automatically
anytime the <sml_file> is saved.