Skip to content

Conversation

Thimoteus
Copy link
Contributor

No description provided.

@hdgarrood
Copy link
Contributor

These are fixed in the 0.14 branch aren’t they?

@JordanMartinez
Copy link
Contributor

@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
Copy link
Contributor

@hdgarrood hdgarrood Mar 29, 2020

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.

Copy link
Contributor

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)

Copy link
Contributor Author

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.

@hdgarrood hdgarrood closed this Sep 17, 2020
@hdgarrood
Copy link
Contributor

I don’t remember closing this; I guess must have closed it by accident, sorry!

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.

3 participants