bsansouci / bsb-native

Build system for OCaml/Reason
Other
245 stars 10 forks source link

Use Belt in utop/rtop #58

Closed dboris closed 6 years ago

dboris commented 6 years ago
─( 16:12:07 )─< command 0 >──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─
utop # #directory "node_modules/bs-platform/lib/ocaml";;
─( 16:12:07 )─< command 1 >──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─
utop # open Belt;;
Error: The files /Users/boris/.opam/4.02.3+buckle-master/bin/utop
       and node_modules/bs-platform/lib/ocaml/belt.cmi
       make inconsistent assumptions over interface Pervasives

Is there another way?

dboris commented 6 years ago

Found the correct way:

directory "node_modules/bs-platform/lib/ocaml/native";

bsansouci commented 6 years ago

Nice find!