-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Right now I have Enum
, Bounded
orphan instance for Pairs (,)
and Either
types. And I'm looking to add an Enum
instance for the List []
type.
The reason for this is that this instances are needed in order to lift functions to relations and to define a couple of relational operators.
Since this orphan instances can be harmful because they might not be what one would exactly desire maybe it would be a better alternative to have newtype wrappers around them like:
newtype (><) a b = P (a, b)
newtype (-|-) a b = E (Either a b)
newtype Powerset a = PS [a]
Metadata
Metadata
Assignees
Labels
No labels