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

How to define a union with a generic? #14

Closed
OliverJAsh opened this issue Jan 27, 2018 · 2 comments
Closed

How to define a union with a generic? #14

OliverJAsh opened this issue Jan 27, 2018 · 2 comments

Comments

@OliverJAsh
Copy link
Collaborator

For example Maybe a = Just a | Nothing.

Is this possible? :-)

Thanks,
Olly

@pelotom
Copy link
Owner

pelotom commented Jan 27, 2018

There’s not a straightforward way to do it currently, see #4.

@OliverJAsh
Copy link
Collaborator Author

Thanks for the answer @pelotom. I'll refer to that issue.

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