File diff using the patience diff algorithm: a MoonBit port of Jane Street's patdiff
moon build --release_build/native/release/build/cmd/patdiff/patdiff.exe old.txt new.txtlet diff : Bytes = @kernel.patdiff(
prev=@kernel.DiffInput::of_string("old", "Foo bar buzz"),
next=@kernel.DiffInput::of_string("new", "Foo buzz"),
output=Html,
)| Package | Contents |
|---|---|
| patience_diff | The diff algorithm, generic over the element type |
| ansi_text | Parsing and manipulating text with ANSI escape codes |
| kernel | Refinement, moves, rendering and configuration; no I/O |
| sexp | S-expressions, for configuration files |
| sys | Native bindings for files and the terminal |
| lib | Comparing files and directories, loading configuration; native only |
| cmd/patdiff, cmd/ansi_text | The executables; native only |
moon testmoon build --release && python3 test/cli/run_cram.pyInstall
Download zipFile diff using the patience diff algorithm: a MoonBit port of Jane Street's patdiff