The first, deprecated method works, but the call to require using the new ppx crashes utop - here is the entire output:
│ Welcome to utop version 1.19.2 (using OCaml version 4.03.0)! │
└──────────────────────────────────────────────────────────────┘
Findlib has been successfully loaded. Additional directives:
#require "package";; to load a package
#list;; to list the available packages
#camlp4o;; to load camlp4 (standard syntax)
#camlp4r;; to load camlp4 (revised syntax)
#predicates "p,q,...";; to set these predicates
Topfind.reset();; to force that packages will be reloaded
#thread;; to enable threads
Type #utop_help for help about using utop.
─( 09:01:04 )─< command 0 >──────────────────────────────────────{ counter: 0 }─
utop # #require "ppx_sexp_conv";;
File "", line 1, characters 0-4: Error:Parse error: illegal begin of top_phrase Fatal error: exception Exit
Raised at file "
bytes.ml", line 219, characters 25-34
Called from file "src/
pre_sexp.ml", line 86, characters 11-45