usage in toplevel ?
Nobody has claimed this yet.
- Dominant language
- OCaml
- Stars
- 148
- Forks
- 7
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 6
Description
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 !
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported command with ocaml -ppx mlx-pp, #use_output "dune top", and the JSX expression. Read how mlx-pp interacts with the OCaml toplevel and compare that with the mention of utop and reason-react-ppx. Done means either JSX works in a supported toplevel workflow or the supported limitation and usage are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- compilers, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100