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

Define tIsNominal and use it #1733

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Define tIsNominal and use it #1733

merged 1 commit into from
Aug 19, 2024

Conversation

RyanGlScott
Copy link
Contributor

This defines a tIsNominal :: Type -> Maybe (NominalType, [Type]) function. There is one spot in Cryptol.TypeCheck.Infer where this can more neatly replace a manual pattern match on TNominal, so I went ahead and did this as well.

Fixes #1732.

This defines a `tIsNominal :: Type -> Maybe (NominalType, [Type])` function.
There is one spot in `Cryptol.TypeCheck.Infer` where this can more neatly
replace a manual pattern match on `TNominal`, so I went ahead and did this as
well.

Fixes #1732.
Copy link
Member

@yav yav left a comment

Choose a reason for hiding this comment

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

Good idea!

@RyanGlScott RyanGlScott merged commit cc3b3fb into master Aug 19, 2024
48 checks passed
@RyanGlScott RyanGlScott deleted the T1732-tIsNominal branch August 19, 2024 17:23
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.

Missing tIsNominal function
2 participants