Session.of_file already allows to create a session from an arbitrary file.
We could however define a convention for library provided sessions. This could be a way for packages to provide easy access to steppable tutorials.
E.g. $(opam var share)/PKG/ocaml-session/NAME.ml would define a PKG.NAME session -- and we forbid dotted names in ~/.config/ocaml/session/ to avoid ambiguities.
These should however not interfere with the user's personal sessions. So either we should add another function to list them or an optional argument to Session.list.
Session.of_file
already allows to create a session from an arbitrary file.We could however define a convention for library provided sessions. This could be a way for packages to provide easy access to steppable tutorials.
E.g.
$(opam var share)/PKG/ocaml-session/NAME.ml
would define aPKG.NAME
session -- and we forbid dotted names in~/.config/ocaml/session/
to avoid ambiguities.These should however not interfere with the user's personal sessions. So either we should add another function to list them or an optional argument to
Session.list
.