@@ -29,14 +29,14 @@ class AsConstructor (ctor :: Symbol) a s | s ctor -> a where
31 ( Generic s
31 ( Generic s
32− , ErrorUnlessTrue ctor s (HasCtorP ctor (Rep s))
32+ , ErrorUnless ctor s (HasCtorP ctor (Rep s))
33 , GAsConstructor ctor (Rep s) a
33 , GAsConstructor ctor (Rep s) a
34 ) => AsConstructor ctor a s where
34 ) => AsConstructor ctor a s where
36 _Ctor = repIso . _GCtor @ctor
36 _Ctor = repIso . _GCtor @ctor
38−type family ErrorUnlessTrue (ctor :: Symbol) (s :: Type) (contains :: Bool) :: Constraint where
38+type family ErrorUnless (ctor :: Symbol) (s :: Type) (contains :: Bool) :: Constraint where
39− ErrorUnlessTrue ctor s 'False
39+ ErrorUnless ctor s 'False
40 = TypeError
40 = TypeError
41 ( 'Text "The type "
41 ( 'Text "The type "
42 ':<>: 'ShowType s
42 ':<>: 'ShowType s
@@ -44,7 +44,7 @@ type family ErrorUnlessTrue (ctor :: Symbol) (s :: Type) (contains :: Bool) :: C
44 ':<>: 'ShowType ctor
44 ':<>: 'ShowType ctor
47− ErrorUnlessTrue _ _ 'True
47+ ErrorUnless _ _ 'True
50class GAsConstructor (ctor :: Symbol) (f :: Type -> Type) a | ctor f -> a where
50class GAsConstructor (ctor :: Symbol) (f :: Type -> Type) a | ctor f -> a where