Skip to content

[Peras 46] Introduce Void Peras types and helpers - #2173

Open
agustinmista wants to merge 2 commits into
peras/type-family-wrappersfrom
peras/void-helpers
Open

[Peras 46] Introduce Void Peras types and helpers#2173
agustinmista wants to merge 2 commits into
peras/type-family-wrappersfrom
peras/void-helpers

Conversation

@agustinmista

@agustinmista agustinmista commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

This PR introduces Void-based Peras helpers to be used in the default BlockSupportsPeras instance for block types that do not support Peras.

NOTE: we use newtypes with phantom blk parameters instead of type synonyms over Void in several places. This is deliberate, as we want these types to be usable to instantiate injective type families directly (i.e, without any extra unnecessary wrapper) later on.

NOTE: with the exception of the instance IsPerasError for VoidPerasError, all the necessary methods associated with these types are discharged by contradiction 'absurd'.

@agustinmista agustinmista self-assigned this Jul 31, 2026
@agustinmista
agustinmista force-pushed the peras/void-helpers branch 2 times, most recently from b32fd94 to 50aaf94 Compare August 3, 2026 08:58
agustinmista and others added 2 commits August 3, 2026 11:42
This commit introduces Void-based Peras helpers to be used in the
default BlockSupportsPeras instance for block types that do not
support Peras.

NOTE: we use newtypes with phantom blk parameters instead of type
synonyms over Void in several places. This is deliberate, as we want
these types to be usable to instantiate injective type families
directly (i.e, without any extra unecessary wrapper) later on.

NOTE: with the exception of the instance IsPerasError for
VoidPerasError, all the necessary methods associated with these types
are discharged by contradiction 'absurd'.

Co-authored-by: Agustin Mista <agustin.mista@tweag.io>
Co-authored-by: Thomas BAGREL <thomas.bagrel@tweag.io>
Co-authored-by: Nicolas BACQUEY <nicolas.bacquey@tweag.io>
@agustinmista
agustinmista marked this pull request as ready for review August 3, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant