xenia d697854a7e | ||
---|---|---|
ppx | ||
test | ||
.gitignore | ||
README.md | ||
dune-project | ||
package.nix | ||
ppx_unicode.opam |
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"