First, thanks for this awesome library !
I couldn't find a way to use it in a toplevel though. I tried some things, like :
$ ocaml -ppx mlx-pp
OCaml version 5.4.1
Enter #help;; for help.
# #use_output "dune top";;
# JSX.render <h1>(JSX.string "ok")</h1>;;
Error: Syntax error
I think I read somewhere a long time ago that there was a way to activate preprocesses in utop. Or maybe it was that ppxs are automatically activated. But mlx-pp is not an ast preprocessor like reason-react-ppx, is it ? So is there a way to benefit from its usage in any toplevel ? That would be awesome !
First, thanks for this awesome library !
I couldn't find a way to use it in a toplevel though. I tried some things, like :
I think I read somewhere a long time ago that there was a way to activate preprocesses in utop. Or maybe it was that ppxs are automatically activated. But
mlx-ppis not an ast preprocessor likereason-react-ppx, is it ? So is there a way to benefit from its usage in any toplevel ? That would be awesome !