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

Problem with the Unzip type family #44

Open
Lysxia opened this issue Feb 1, 2018 · 2 comments
Open

Problem with the Unzip type family #44

Lysxia opened this issue Feb 1, 2018 · 2 comments

Comments

@Lysxia
Copy link
Contributor

Lysxia commented Feb 1, 2018

Unzip assumes that in any type of the form f a, where a has kind Type, a is a type of field. But a could also be phantom or a parameter of a data family (or yet something else?).

Related to #42 because this another problem with genericAdaptor, but #42 might be fixed independently in a way that works for most common cases.

The present issue seems to require an overhaul of Unzippable, for which #42 should certainly be taken into account.

@tomjaguarpaw
Copy link
Owner

I wonder if genericAdaptor is not really a well-defined thing. It seems somewhat challenging to write down a mathematical definition of its behaviour.

@Lysxia
Copy link
Contributor Author

Lysxia commented Feb 3, 2018

Right, other than explaining it in terms of sums and products, which is literally what Generic does, I don't know.

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

No branches or pull requests

2 participants