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

Add Num instances to newtype wrappers #31

Open
phadej opened this issue May 16, 2016 · 2 comments
Open

Add Num instances to newtype wrappers #31

phadej opened this issue May 16, 2016 · 2 comments

Comments

@phadej
Copy link
Collaborator

phadej commented May 16, 2016

No description provided.

@tonyday567
Copy link

tonyday567 commented Nov 4, 2019

Can

instance (Num a) => Lattice a where
  a /\ b = a `min` b
  a \/ b = a `max` b

be included directly? It's an undecidable instance, but it looks like a benign one.

@tonyday567
Copy link

Ok, I see why, because of Overlapping Instances. So what's the best way to add Num instances?

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