opinionated ppx for string literals
Go to file
xenia c8ae9c20d2 package the project 2024-04-25 02:28:10 -04:00
ppx package the project 2024-04-25 02:28:10 -04:00
test refactor, add bytes 2024-04-25 02:09:14 -04:00
.gitignore initial commit 2024-04-25 00:14:52 -04:00
README.md package the project 2024-04-25 02:28:10 -04:00
dune-project package the project 2024-04-25 02:28:10 -04:00
package.nix package the project 2024-04-25 02:28:10 -04:00
ppx_unicode.opam package the project 2024-04-25 02:28:10 -04:00

README.md

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"