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 PInType to fix ptryFrom' type #545

Closed
L-as opened this issue Aug 17, 2022 · 0 comments
Closed

Add PInType to fix ptryFrom' type #545

L-as opened this issue Aug 17, 2022 · 0 comments

Comments

@L-as
Copy link
Member

L-as commented Aug 17, 2022

We need singletons for this.

data PInType (x :: Term edsl a) (b :: PType) ef
pinTypeRefl :: PInType (x :: Term edsl a) a
punsafeInType :: PInType x b
ptryFrom' :: forall a b edsl r x. PTryFrom a b => Single (x :: Term edsl a) -> ((Term edsl (PInType x b), Reduce (PTryFromExcess a b edsl)) -> Term edsl r) -> Term edsl r

Depends on #501 and https://github.com/L-as/generic-singletons-very-wip-dont-use

@L-as L-as changed the title Add typing type Add PInType to fix ptryFrom' type Aug 17, 2022
@kozross kozross closed this as completed Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants