-
Notifications
You must be signed in to change notification settings - Fork 91
Fix kind warnings #211
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
Fix kind warnings #211
Conversation
These are fixed in the 0.14 branch aren’t they? |
@hdgarrood No, not yet. My previous PR came before the changes Nate made when core contributors decided to emit the "could not generalize kind" warnings. |
@@ -14,6 +14,7 @@ module Data.NaturalTransformation where | |||
-- | `f` and `g` should be functors, but the `Functor` constraint is not | |||
-- | enforced here; that the types are of kind `Type -> Type` is enough for our | |||
-- | purposes. | |||
type NaturalTransformation :: forall k. (k -> Type) -> (k -> Type) -> Type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This kind signature disagrees with the doc-comments. I feel like perhaps we should make this (Type -> Type) -> (Type -> Type) -> Type
unless there is a specific example where the generalized version would be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Or alternatively update the doc comments)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point, I've updated the doc comments.
I don’t remember closing this; I guess must have closed it by accident, sorry! |
No description provided.