ppx_blob allows you to include a binary blob from a file as a string. Writing [%blob "filename"] will replace the string with the contents of the file at compile time. This allows the inclusion of arbitary, possibly compressed, data, without the need to respect OCaml's lexical conventions.
ppx_blob allows you to include a binary blob from a file as a string. Writing [%blob "filename"] will replace the string with the contents of the file at compile time. This allows the inclusion of arbitary, possibly compressed, data, without the need to respect OCaml's lexical conventions.
To install ocaml-ppx_blob, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install ocaml-ppx_blob
To see what files were installed by ocaml-ppx_blob, run:
port contents ocaml-ppx_blob
To later upgrade ocaml-ppx_blob, run:
sudo port selfupdate && sudo port upgrade ocaml-ppx_blob
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.