OCaml toplevel (REPL) upgrade
Down is an unintrusive user experience upgrade for the ocaml
toplevel (REPL).
Simply load the zero dependency down
library in the ocaml
toplevel and you get line edition, history, session support and identifier completion and documentation with ocp-index
.
Add this to your ~/.ocamlinit
:
#use "down.top"
You may also need to add this to your ~/.ocamlinit
and declare the environment variable OCAML_TOPLEVEL_PATH
:
let () = try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH") with Not_found -> ()
OR
let () = String.split_on_char ':' (Sys.getenv "OCAMLPATH") |> List.filter (fun x -> Filename.check_suffix x "/site-lib") |> List.map (fun x -> x ^ "/toplevel") (* remove the line below if you don't want to see the text every time you start the toplevel *) |> List.map (fun x -> Printf.printf "adding directory %s\n" x; x) |> List.iter Topdirs.dir_directory;;
System | Target | Derivation | Build status |
---|---|---|---|
x86_64-linux | /gnu/store/52577fqg97bjzlh6x57nm17s2ly9xysa-ocaml-down-0.1.0.drv | ||
riscv64-linux | /gnu/store/1hc8d1v27hlp6jrh5grliakrsd3waga6-ocaml-down-0.1.0.drv | ||
powerpc-linux | /gnu/store/7jgl8yqbzzdipxlk390vm8l72vaz3v85-ocaml-down-0.1.0.drv | ||
powerpc64le-linux | /gnu/store/hcm8vx84lqyzi68divs5z2fdfvq6mlb5-ocaml-down-0.1.0.drv | ||
mips64el-linux | /gnu/store/54j52g0sbqv4bwrz3zz6blkrb7k4hwnb-ocaml-down-0.1.0.drv | ||
i686-linux | /gnu/store/vh0gf3qppfwy8vc7ranr8dz8f0hv70pp-ocaml-down-0.1.0.drv | ||
armhf-linux | /gnu/store/6iw7x9bbkswz9icw4ks6g3xh1lvkn5cn-ocaml-down-0.1.0.drv | ||
aarch64-linux | /gnu/store/z4lb2rpbvhqp9mrlk0lmqaadgxkpnng6-ocaml-down-0.1.0.drv |
Linter | Message | Location |
---|---|---|
description Validate package descriptions | use @code or similar ornament instead of quotes |