Skip to content

[#717] Handle oddly-sized integral types with the int-cast facilities

Description

We currently have Mutez, TLTime integral types with odd sizes, that we treat in a special way and define specific conversion functions for. We should stop this special treatment and handle Mutez and TLTime as any other integral type.

This defines the right instances of Bits, Integral, IntBaseType and bring in int-cast facilities for Mutez and TLTime.

Related issue(s)

Resolves #717 (closed)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Nurlan Alkuatov

Merge request reports