Releases: mirage/repr
0.7.0
CHANGES:
-
Add quadruples as another type combinator (#104, @patricoferris)
-
Expose the underlying
Jsonm.decoder
for custom JSON serialisation in
functions likeRepr.like
. (#103, @patricoferris)
0.6.0
0.5.0
CHANGES:
-
Add
Repr.int63
, a representation of theOptint.Int63.t
type (provided by
theoptint
library). (#80, @craigfe) -
Change
Repr.{like,map,partially_abstract}
functions to not require_ staged
wrappers around any (monomorphic) overrides. (#77, @craigfe) -
Fix a bug causing custom
Repr.{random,random_state}
implementations to be
ignored. (#79, @craigfe) -
Fix
Repr.pre_hash
to rely on itself recursively. This ensures that custom
pre_hash
functions attached to components of larger types are not ignored.
(#71, @craigfe)
0.4.0
CHANGES:
-
Add
Repr.{random,random_state}
, a pair of generic functions for sampling
random instances of representable types. (#58, @craigfe) -
Add
Repr.Size
, which provides sizing functions for binary codecs that are
more informative than the existingRepr.size_of
. Types built usingRepr.v
andRepr.like
must now pass a sizer built usingRepr.Size.custom_*
. (#69,
@craigfe)
0.3.0
CHANGES:
-
Added
Repr.partially_abstract
, a helper combinator for constructing type
representations with overridden operations. (#52, @craigfe) -
Add combinators for standard library container types:
ref
,Lazy.t
,
Seq.t
,Queue.t
,Stack.t
,Hashtbl.t
,Set.t
andMap.t
.
(#43, @craigfe) -
Improve PPX
Repr.t
generation for types in the standard library. References
to e.g.Bool.t
orStdlib.Int32.t
will be resolved to the corresponding
combinators. (#43, @craigfe) -
Add support for deriving mutually-recursive pairs of type representations
withppx_repr
. (#42, @craigfe) -
Add a JSON object combinator:
Json.assoc
(#53, @Ngoguey42) -
Drop the payload of NaN floating point values during JSON encoding.
-nan
strings are not emitted any more. (#55, @Ngoguey42)
Distribution 0.2.1
Distribution 0.2.0
Distribution 0.1.0
CHANGES:
Initial release.