ppx_tools
ppx_tools copied to clipboard
ppx_metaquot should include location info
Right now the type errors are confusing:
File "_none_", line 1:
Error: This pattern matches values of type Parsetree.expression
but a pattern was expected which matches values of type
Parsetree.expression_desc
A good test case for this problem:
[%expr fun x -> [%e Exp.variant (int_encoding typ) [%expr (Int64.to_string x)]]]
+1 Absolutely
This would be awesome, if it just allowed you to pass in a single location that all the generated ast's would share.
@Charlesetc That's already there; see https://github.com/alainfrisch/ppx_tools/blob/master/ppx_metaquot.ml#L28-L38
Just saw that! True - thanks