dmwit / universe

Classes for types where we know all the values
BSD 3-Clause "New" or "Revised" License
37 stars 17 forks source link

Move Void instance to `universe-base` #25

Closed phadej closed 5 years ago

treeowl commented 5 years ago

Void, V1 a, (), and U1 a are unusual in that each has exactly one lawful instance. So I don't see any reason for those even to be orphans.

treeowl commented 5 years ago

Also pretty boring: instance Universe a => Universe (Identity a), instance Universe a => Universe (Const a b), and instance Universe a => Universe (K1 i a p).

phadej commented 5 years ago

Moved. Added Identity and Const. Will add generics later.