@@ -13,7 +13,6 @@ import Prim.RowList (RowList, Cons, Nil, class RowToList)
13
13
import Type.Equality (class TypeEquals )
14
14
import Type.Data.Symbol as Symbol
15
15
import Type.Data.Boolean as Boolean
16
- import Type.Data.RowList (RLProxy )
17
16
import Type.Data.RowList (RLProxy (..)) as RLProxy
18
17
19
18
-- | Convert a RowList to a row of types.
@@ -51,7 +50,7 @@ class RowListSet :: forall k. Symbol -> k -> RowList k -> RowList k -> Constrain
51
50
class RowListSet label typ input output | label typ input -> output
52
51
53
52
instance rowListSetImpl
54
- :: ( TypeEquals ( Symbol.SProxy label ) ( Symbol.SProxy label' )
53
+ :: ( TypeEquals label label'
55
54
, TypeEquals typ typ'
56
55
, RowListRemove label input lacking )
57
56
=> RowListSet label typ input (Cons label' typ' lacking )
@@ -64,9 +63,9 @@ instance rowListNubNil
64
63
:: RowListNub Nil Nil
65
64
66
65
instance rowListNubCons
67
- :: ( TypeEquals ( Symbol.SProxy label ) ( Symbol.SProxy label' )
66
+ :: ( TypeEquals label label'
68
67
, TypeEquals head head'
69
- , TypeEquals ( RLProxy nubbed ) ( RLProxy nubbed' )
68
+ , TypeEquals nubbed nubbed'
70
69
, RowListRemove label tail removed
71
70
, RowListNub removed nubbed )
72
71
=> RowListNub (Cons label head tail ) (Cons label' head' nubbed' )
@@ -76,10 +75,10 @@ class RowListAppend :: forall k. RowList k -> RowList k -> RowList k -> Constrai
76
75
class RowListAppend lhs rhs out | lhs rhs -> out
77
76
78
77
instance rowListAppendNil
79
- :: TypeEquals ( RLProxy rhs ) ( RLProxy out )
78
+ :: TypeEquals rhs out
80
79
=> RowListAppend Nil rhs out
81
80
82
81
instance rowListAppendCons
83
82
:: ( RowListAppend tail rhs out'
84
- , TypeEquals (RLProxy ( Cons label head out' )) ( RLProxy out ) )
83
+ , TypeEquals (Cons label head out' ) out )
85
84
=> RowListAppend (Cons label head tail ) rhs out
0 commit comments