ocaml-community / ocamlscript

Write an OCaml script, run an optimized executable
Boost Software License 1.0
73 stars 7 forks source link

std module, to support no merlin errors #4

Closed struktured closed 3 years ago

struktured commented 9 years ago

This introduces a module that encompases all the Ocamlscript modules as well as this operator:

val (--) : 'a -> 'b -> unit

which is used to get the ocamlscript header through the merlin compiler without errors, such as with this example.

Note this still requires having a .merlin file, although I'm considering ways around that too. Before this change, you simply couldn't avoid getting an error on the terminating -- line.

mjambon commented 3 years ago

Looks good to me, I should have merged it 6 years ago.

mjambon commented 3 years ago

@UnixJunkie is taking over the maintenance of the project.

mjambon commented 3 years ago

all my apologies, @struktured