Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Repr.int63 as a representation of the Optint.Int63.t type #80

Merged
merged 2 commits into from
Oct 8, 2021

Conversation

craigfe
Copy link
Member

@craigfe craigfe commented Oct 7, 2021

Fix #78.

Depends on #79 to get the tests working.

@craigfe craigfe force-pushed the int63 branch 2 times, most recently from e3b687d to 7169ccc Compare October 7, 2021 17:47
Copy link
Contributor

@Ngoguey42 Ngoguey42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Another feature that I would love to see in repr is a way to encode/decode int64 (and int63) as varints.

@craigfe
Copy link
Member Author

craigfe commented Oct 8, 2021

Yep, that'd be very worthwhile (and is tracked by #8).

@craigfe craigfe force-pushed the int63 branch 3 times, most recently from 0ed9363 to 5b95857 Compare October 8, 2021 11:36
@craigfe craigfe merged commit 17623de into mirage:main Oct 8, 2021
craigfe added a commit to craigfe/opam-repository that referenced this pull request Oct 12, 2021
CHANGES:

- Add `Repr.int63`, a representation of the `Optint.Int63.t` type (provided by
  the `optint` library). (mirage/repr#80, @craigfe)

- Change `Repr.{like,map,partially_abstract}` functions to not require `_
  staged` wrappers around any (monomorphic) overrides. (mirage/repr#77, @craigfe)

- Fix a bug causing custom `Repr.{random,random_state}` implementations to be
  ignored. (mirage/repr#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.
  (mirage/repr#71, @craigfe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Supply a type representation for Optint.Int63.t directly
2 participants