Skip to content

Conversation

@mlang
Copy link

@mlang mlang commented Dec 16, 2018

No description provided.

@hdgarrood
Copy link
Contributor

I think it might be best to leave these as they are, since they aren’t really natural transformations, as they violate parametricity, and also Nullable isn’t even a functor.

@hdgarrood
Copy link
Contributor

Thanks for the PR, but I'm going to close this for the above reason. For a less jargon-y explanation, I think using ~> encourages the reader not to worry about what the type a happens to be. However, when you're using Nullable a, you do need to worry about what the type a is, because stuff will break if a happens to allow null as a runtime representation.

@hdgarrood hdgarrood closed this Jan 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants