Skip to content

usage in toplevel ? #32

Description

@lafleurdeboum

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 !

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions