Partially applicable constraint tuples.
This library provides classes and type aliases that emulate the behavior of GHC's constraint tuple syntax. Unlike GHC's built-in constraint tuples, the types in this library can be partially applied.
This library exposes four different modules that provide essentially the same API with slight differences in their implementation:
Data.Tuple.Constraint: ACTupleNclass compiles to a dictionary data type withNfields. (When building with GHC 9.10 or later, this will simply re-export the constraint tuples offered byGHC.Classes.)Data.Tuple.Constraint.ClassNewtype: ACTupleNclass compiles to a newtype around the corresponding built-in constraint tuple type withNarguments.Data.Tuple.Constraint.TypeFamily: ACTupleNtype alias is a constraint tuple type constructor withNarguments obtained by way of a type family. This will compile to a built-in constraint tuple, but casted with a type family axiom.Data.Tuple.Constraint.TypeSynonym: ACTupleNtype alias is a constraint tuple type constructor withNarguments obtained by way of a type synonym. This will compile directly to a built-in constraint tuple.
constraint-tuples
This library provides classes and type aliases that emulate the behavior of GHC's constraint tuple syntax. Unlike GHC's built-in constraint tuples, the types in this library can be partially applied.
This library exposes four different modules that provide essentially the same API with slight differences in their implementation:
Data.Tuple.Constraint: ACTupleNclass compiles to a dictionary data type withNfields. (When building with GHC 9.10 or later, this will simply re-export the constraint tuples offered byGHC.Classes.)Data.Tuple.Constraint.ClassNewtype: ACTupleNclass compiles to a newtype around the corresponding built-in constraint tuple type withNarguments.Data.Tuple.Constraint.TypeFamily: ACTupleNtype alias is a constraint tuple type constructor withNarguments obtained by way of a type family. This will compile to a built-in constraint tuple, but casted with a type family axiom.Data.Tuple.Constraint.TypeSynonym: ACTupleNtype alias is a constraint tuple type constructor withNarguments obtained by way of a type synonym. This will compile directly to a built-in constraint tuple.