ppx_unicode/README.md

502 B

ppx_unicode

this is an opinionated unicode PPX for ocaml

features

  • all bare string literals are enforced UTF-8, and normalized using NFC. this is similar to https://github.com/dbuenzli/ppx_utf8_lit, however this PPX aims for a modern implementation based on ppxlib and defaults to enforced and normalized UTF-8 on all strings
  • Uchar.t literals:
# "å"[@uchar]
- : Uchar.t = <abstr>
  • bytes literals
# "å"[@bytes]
- : bytes = Bytes.of_string "\195\165"