I was experimenting with some new Reason React JSX representations and I noticed that in one of the recent syntax refactorings, formatting of GADTs became very ugly:
type jsx('nature) =
| Empty: jsx(empty)
| Cons(elem(('s1, 'a1), 'sub1), jsx('tl)): jsx(
(('s1, 'a1) => 'sub1, 'tl),
);
This is a good first task if anyone is interested in learning the code base.
To new people looking to get started:
cat fileThatHasThatSample.re | refmt --parse re --print ast. (Or if you're using the esy workflow for developing, prefix the call to refmt ... like esy refmt ...../src/reason-parser/reason_pprint_ast.mlI'll have a look at this
Most helpful comment
To new people looking to get started:
cat fileThatHasThatSample.re | refmt --parse re --print ast. (Or if you're using theesyworkflow for developing, prefix the call torefmt ...likeesy refmt ...../src/reason-parser/reason_pprint_ast.ml