Skip to content

Instantly share code, notes, and snippets.

@0xYUANTI
Created July 5, 2016 19:11
Show Gist options
  • Save 0xYUANTI/9bc9d83ff964d79b4d461a10c8b8f5f8 to your computer and use it in GitHub Desktop.
Save 0xYUANTI/9bc9d83ff964d79b4d461a10c8b8f5f8 to your computer and use it in GitHub Desktop.
adding
type intLeaf = | Leaf int;
results in
jakob@crunchy:/usr/home/jakob/git/botcloud/telegram-re$ rebuild -pkg cohttp.lwt wtf.native
+ /usr/local/bin/ocamldep.opt -modules -pp refmt -impl wtf.re | tee wtf.re.depends wtf.ml.depends
Fatal error: exception Not_found
File "wtf.re", line 1:
Error: Error while running external preprocessor
Command line: refmt 'wtf.re' > /tmp/ocamlppafeda5
wtf.re:
+ /usr/local/bin/ocamlc.opt -c -I /home/jakob/.opam/system/lib/base64 -I /home/jakob/.opam/system/lib/bytes -I /home/jakob/.opam/system/lib/cohttp -I /home/jakob/.opam/system/lib/conduit -I /home/jakob/.opam/system/lib/cstruct -I /home/jakob/.opam/system/lib/fieldslib -I /home/jakob/.opam/system/lib/ipaddr -I /home/jakob/.opam/system/lib/lwt -I /home/jakob/.opam/system/lib/magic-mime -I /home/jakob/.opam/system/lib/ocplib-endian -I /home/jakob/.opam/system/lib/re -I /home/jakob/.opam/system/lib/sexplib -I /home/jakob/.opam/system/lib/stringext -I /home/jakob/.opam/system/lib/uri -I /usr/local/lib/ocaml -pp '-I /home/jakob/.opam/system/lib/base64 -I /home/jakob/.opam/system/lib/bytes -I /home/jakob/.opam/system/lib/cohttp -I /home/jakob/.opam/system/lib/conduit -I /home/jakob/.opam/system/lib/cstruct -I /home/jakob/.opam/system/lib/fieldslib -I /home/jakob/.opam/system/lib/ipaddr -I /home/jakob/.opam/system/lib/lwt -I /home/jakob/.opam/system/lib/magic-mime -I /home/jakob/.opam/system/lib/ocplib-endian -I /home/jakob/.opam/system/lib/re -I /home/jakob/.opam/system/lib/sexplib -I /home/jakob/.opam/system/lib/stringext -I /home/jakob/.opam/system/lib/uri -I /usr/local/lib/ocaml' -pp refmt -o wtf.cmo -intf-suffix .rei -impl wtf.re
Fatal error: exception Not_found
File "wtf.re", line 1:
Error: Error while running external preprocessor
Command line: refmt 'wtf.re' > /tmp/ocamlpp78045a
Command exited with code 2.
Compilation unsuccessful after building 2 targets (0 cached) in 00:00:00.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment