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]
Right now I have
Enum,Boundedorphan instance for Pairs(,)andEithertypes. And I'm looking to add anEnuminstance 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: