OCaml: Difference between revisions
imported>Vbgl |
imported>Samuela No edit summary |
||
| Line 10: | Line 10: | ||
This hook also sets the '''CAML_LD_LIBRARY_PATH''' environment variable that is used for locating the dynamically loaded shared libraries (aka stublibs). | This hook also sets the '''CAML_LD_LIBRARY_PATH''' environment variable that is used for locating the dynamically loaded shared libraries (aka stublibs). | ||
== Scripting with OCaml == | |||
OCaml can be used in nix-shell scripts as follows: | |||
<syntaxHighlight lang=ocaml> | |||
#!/usr/bin/env nix-shell | |||
(* | |||
#!nix-shell --pure -i ocaml -p ocaml | |||
*) | |||
print_string "Hello world! 🚀 \n";; | |||
</syntaxHighlight> | |||
== Using Emacs == | == Using Emacs == | ||