Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 526 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 526 Bytes

Build Status

ppx_ulong

A ppx rewriter for integers' Unsigned.ULong literals

Syntax

ppx_ulong transforms literals with the u suffix to an Unsigned.ULong.t value.

It turns:

10u

into:

Unsigned.ULong.of_int64 10L

0x, 0o and 0b notations are supported as well as _. If the literal isn't a representable ulong value, it won't wrap it but will raise an ocaml.error.