Skip to content

Instantly share code, notes, and snippets.

@reynir
Last active January 19, 2018 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reynir/0ca3a1254bd47133dd308d5e2895923e to your computer and use it in GitHub Desktop.
Save reynir/0ca3a1254bd47133dd308d5e2895923e to your computer and use it in GitHub Desktop.
asd
(jbuild_version 1)
(library
((name test)
(public_name test)
(preprocess (pps ()))))
let foo = (type a, xs: list(a)) =>
switch xs {
| [x, ..._] => Some(x)
| _ => None
};
@reynir
Copy link
Author

reynir commented Jan 19, 2018

The error:

$ jbuilder build
       refmt test.re.ml
    ocamlopt .ppx/+none+/ppx.exe
         ppx test.re.pp.ml
    ocamldep test.depends.ocamldep-output
      ocamlc test.{cmi,cmo,cmt} (exit 2)
(cd _build/default && /home/rbj/.opam/4.05.0+flambda/bin/ocamlc.opt -w -40 -g -bin-annot -no-alias-deps -I . -o test.cmo -c -impl test.re.pp.ml)
File "test.re", line 1, characters 28-29:
Error: Unbound type constructor a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment