Newbie compile error
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <[email protected]> |
I have this small program: require "core_extended";; open Core.Std;; open Core_extended.Std;; let cloneAu = let sh = Shell.sh_one_exn in let () = sh "git clone https://github.com/loldrup/Auchitect.git"; end However, the compiler keeps complaining. I have tried all sorts of syntactic variations, to no avail :( What is wrong? This is the compiler output: corebuild install_auchitect.native ocamlfind ocamldep -syntax camlp4o -package bin_prot.syntax -package sexplib.syntax,comparelib.syntax,fieldslib.syntax,variantslib.syntax -package core -modules install_auchitect.ml > install_auchitect.ml.depends + ocamlfind ocamldep -syntax camlp4o -package bin_prot.syntax -package sexplib.syntax,comparelib.syntax,fieldslib.syntax,variantslib.syntax -package core -modules install_auchitect.ml > install_auchitect.ml.depends File "install_auchitect.ml", line 9, characters 66-67: Parse error: "in" expected after [binding] (in [expr]) Preprocessing error on file install_auchitect.ml Error while running external preprocessor Command line: camlp4 '-I' '/usr/lib/ocaml/camlp4' '-I' '/home/jon/.opam/system/lib/type_conv' '-I' '/usr/lib/ocaml' '-I' '/usr/lib/ocaml' '-I' '/home/jon/.opam/system/lib/bin_prot' '-I' '/home/jon/.opam/system/lib/bin_prot' '-I' '/home/jon/.opam/system/lib/sexplib' '-I' '/home/jon/.opam/system/lib/sexplib' '-I' '/home/jon/.opam/system/lib/comparelib' '-I' '/home/jon/.opam/system/lib/comparelib' '-I' '/home/jon/.opam/system/lib/fieldslib' '-I' '/home/jon/.opam/system/lib/fieldslib' '-I' '/home/jon/.opam/system/lib/variantslib' '-I' '/home/jon/.opam/system/lib/variantslib' '-parser' 'o' '-parser' 'op' '-printer' 'p' 'pa_type_conv.cma' 'unix.cma' 'bigarray.cma' 'bin_prot.cma' 'pa_bin_prot.cma' 'sexplib.cma' 'pa_sexp_conv.cma' 'comparelib.cma' 'pa_compare.cma' 'fieldslib.cma' 'pa_fields_conv.cma' 'variantslib.cma' 'pa_variants_conv.cma' 'install_auchitect.ml' > /tmp/ocamlpp906c3e Command exited with code 2.