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

Patterns on types: operations to dissect a composite type #131

Open
jonsterling opened this issue Jun 2, 2020 · 0 comments
Open

Patterns on types: operations to dissect a composite type #131

jonsterling opened this issue Jun 2, 2020 · 0 comments

Comments

@jonsterling
Copy link
Collaborator

We should have something like

type 'a pattern
val match_tp : D.tp -> 'a pattern -> 'a m

An example would be something like:

let* base, fam = match_tp tp PatPi in 
...

A priori these would just behave like ordinary pattern matching, but we would eventually be able to support doing things like going under splits for "stable" patterns.

@favonia favonia changed the title Add "patterns" Patterns on types: operations to dissect a composite type Mar 20, 2022
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

No branches or pull requests

1 participant