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

Do not put inferred kind variables in generated TH splices #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

expipiplus1
Copy link

Fixes #23

@@ -73,31 +73,35 @@ makeTypeInfo name =
traverse (matchType name var) (D.constructorFields c)
<&> (D.constructorName c,D.constructorVariant c,)
cons <- traverse makeCons (D.datatypeCons info)
let unkindToVar = \case
VarT v -> pure $ PlainTV v ()
SigT (VarT v) _k -> pure $ PlainTV v ()
Copy link
Author

Choose a reason for hiding this comment

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

This feels a little weird, it's a shame we don't get a TyVarBndrVis...

@expipiplus1
Copy link
Author

This also requires PolyKinds, could probably be written to be more flexible I guess

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.

Deriving HNodes (and friends) fails in the presence of PolyKinds
1 participant