@@ -13,7 +13,6 @@ import Prim.RowList (RowList, Cons, Nil, class RowToList)
1313import Type.Equality (class TypeEquals )
1414import Type.Data.Symbol as Symbol
1515import Type.Data.Boolean as Boolean
16- import Type.Data.RowList (RLProxy )
1716import Type.Data.RowList (RLProxy (..)) as RLProxy
1817
1918-- | Convert a RowList to a row of types.
@@ -40,9 +39,9 @@ instance rowListRemoveCons
4039 :: ( RowListRemove label tail tailOutput
4140 , Symbol.Equals label key eq
4241 , Boolean.If eq
43- ( RLProxy tailOutput )
44- (RLProxy ( Cons key head tailOutput ) )
45- ( RLProxy output )
42+ tailOutput
43+ (Cons key head tailOutput )
44+ output
4645 )
4746 => RowListRemove label (Cons key head tail ) output
4847
@@ -51,7 +50,7 @@ class RowListSet :: forall k. Symbol -> k -> RowList k -> RowList k -> Constrain
5150class RowListSet label typ input output | label typ input -> output
5251
5352instance rowListSetImpl
54- :: ( TypeEquals ( Symbol.SProxy label ) ( Symbol.SProxy label' )
53+ :: ( TypeEquals label label'
5554 , TypeEquals typ typ'
5655 , RowListRemove label input lacking )
5756 => RowListSet label typ input (Cons label' typ' lacking )
@@ -64,9 +63,9 @@ instance rowListNubNil
6463 :: RowListNub Nil Nil
6564
6665instance rowListNubCons
67- :: ( TypeEquals ( Symbol.SProxy label ) ( Symbol.SProxy label' )
66+ :: ( TypeEquals label label'
6867 , TypeEquals head head'
69- , TypeEquals ( RLProxy nubbed ) ( RLProxy nubbed' )
68+ , TypeEquals nubbed nubbed'
7069 , RowListRemove label tail removed
7170 , RowListNub removed nubbed )
7271 => RowListNub (Cons label head tail ) (Cons label' head' nubbed' )
@@ -76,10 +75,10 @@ class RowListAppend :: forall k. RowList k -> RowList k -> RowList k -> Constrai
7675class RowListAppend lhs rhs out | lhs rhs -> out
7776
7877instance rowListAppendNil
79- :: TypeEquals ( RLProxy rhs ) ( RLProxy out )
78+ :: TypeEquals rhs out
8079 => RowListAppend Nil rhs out
8180
8281instance rowListAppendCons
8382 :: ( RowListAppend tail rhs out'
84- , TypeEquals (RLProxy ( Cons label head out' )) ( RLProxy out ) )
83+ , TypeEquals (Cons label head out' ) out )
8584 => RowListAppend (Cons label head tail ) rhs out
0 commit comments