Skip to content

Commit f9a884e

Browse files
Replace SProxy with Proxy
1 parent 5709450 commit f9a884e

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

src/Data/Bounded.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ instance boundedRecordCons
9494
topRecord _ rowProxy
9595
= insert top tail
9696
where
97-
key = reflectSymbol (SProxy :: SProxy key)
97+
key = reflectSymbol (Proxy :: Proxy key)
9898
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
9999
tail = topRecord (Proxy :: Proxy rowlistTail) rowProxy
100100

101101
bottomRecord _ rowProxy
102102
= insert bottom tail
103103
where
104-
key = reflectSymbol (SProxy :: SProxy key)
104+
key = reflectSymbol (Proxy :: Proxy key)
105105
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
106106
tail = bottomRecord (Proxy :: Proxy rowlistTail) rowProxy
107107

src/Data/Eq.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,6 @@ instance eqRowCons
109109
=> EqRecord (RL.Cons key focus rowlistTail) row where
110110
eqRecord _ ra rb = (get ra == get rb) && tail
111111
where
112-
key = reflectSymbol (SProxy :: SProxy key)
112+
key = reflectSymbol (Proxy :: Proxy key)
113113
get = unsafeGet key :: Record row -> focus
114114
tail = eqRecord (Proxy :: Proxy rowlistTail) ra rb

src/Data/HeytingAlgebra.purs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,41 +135,41 @@ instance heytingAlgebraRecordCons
135135
=> HeytingAlgebraRecord (RL.Cons key focus rowlistTail) row subrow where
136136
conjRecord _ ra rb = insert (conj (get ra) (get rb)) tail
137137
where
138-
key = reflectSymbol (SProxy :: SProxy key)
138+
key = reflectSymbol (Proxy :: Proxy key)
139139
get = unsafeGet key :: Record row -> focus
140140
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
141141
tail = conjRecord (Proxy :: Proxy rowlistTail) ra rb
142142

143143
disjRecord _ ra rb = insert (disj (get ra) (get rb)) tail
144144
where
145-
key = reflectSymbol (SProxy :: SProxy key)
145+
key = reflectSymbol (Proxy :: Proxy key)
146146
get = unsafeGet key :: Record row -> focus
147147
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
148148
tail = disjRecord (Proxy :: Proxy rowlistTail) ra rb
149149

150150
impliesRecord _ ra rb = insert (implies (get ra) (get rb)) tail
151151
where
152-
key = reflectSymbol (SProxy :: SProxy key)
152+
key = reflectSymbol (Proxy :: Proxy key)
153153
get = unsafeGet key :: Record row -> focus
154154
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
155155
tail = impliesRecord (Proxy :: Proxy rowlistTail) ra rb
156156

157157
ffRecord _ row = insert ff tail
158158
where
159-
key = reflectSymbol (SProxy :: SProxy key)
159+
key = reflectSymbol (Proxy :: Proxy key)
160160
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
161161
tail = ffRecord (Proxy :: Proxy rowlistTail) row
162162

163163
notRecord _ row
164164
= insert (not (get row)) tail
165165
where
166-
key = reflectSymbol (SProxy :: SProxy key)
166+
key = reflectSymbol (Proxy :: Proxy key)
167167
get = unsafeGet key :: Record row -> focus
168168
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
169169
tail = notRecord (Proxy :: Proxy rowlistTail) row
170170

171171
ttRecord _ row = insert tt tail
172172
where
173-
key = reflectSymbol (SProxy :: SProxy key)
173+
key = reflectSymbol (Proxy :: Proxy key)
174174
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
175175
tail = ttRecord (Proxy :: Proxy rowlistTail) row

src/Data/Ord.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ instance ordRecordCons
242242
then left
243243
else compareRecord (Proxy :: Proxy rowlistTail) ra rb
244244
where
245-
key = reflectSymbol (SProxy :: SProxy key)
245+
key = reflectSymbol (Proxy :: Proxy key)
246246
unsafeGet' = unsafeGet :: String -> Record row -> focus
247247
left = unsafeGet' key ra `compare` unsafeGet' key rb
248248

src/Data/Ring.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ instance ringRecordCons
7474
subRecord _ ra rb = insert (get ra - get rb) tail
7575
where
7676
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
77-
key = reflectSymbol (SProxy :: SProxy key)
77+
key = reflectSymbol (Proxy :: Proxy key)
7878
get = unsafeGet key :: Record row -> focus
7979
tail = subRecord (Proxy :: Proxy rowlistTail) ra rb

src/Data/Semigroup.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ instance semigroupRecordCons
8181
=> SemigroupRecord (RL.Cons key focus rowlistTail) row subrow where
8282
appendRecord _ ra rb = insert (get ra <> get rb) tail
8383
where
84-
key = reflectSymbol (SProxy :: SProxy key)
84+
key = reflectSymbol (Proxy :: Proxy key)
8585
get = unsafeGet key :: Record row -> focus
8686
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
8787
tail = appendRecord (Proxy :: Proxy rowlistTail) ra rb

src/Data/Semiring.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,26 +118,26 @@ instance semiringRecordCons
118118
=> SemiringRecord (RL.Cons key focus rowlistTail) row subrow where
119119
addRecord _ ra rb = insert (get ra + get rb) tail
120120
where
121-
key = reflectSymbol (SProxy :: SProxy key)
121+
key = reflectSymbol (Proxy :: Proxy key)
122122
get = unsafeGet key :: Record row -> focus
123123
tail = addRecord (Proxy :: Proxy rowlistTail) ra rb
124124
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
125125

126126
mulRecord _ ra rb = insert (get ra * get rb) tail
127127
where
128-
key = reflectSymbol (SProxy :: SProxy key)
128+
key = reflectSymbol (Proxy :: Proxy key)
129129
get = unsafeGet key :: Record row -> focus
130130
tail = mulRecord (Proxy :: Proxy rowlistTail) ra rb
131131
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
132132

133133
oneRecord _ _ = insert one tail
134134
where
135-
key = reflectSymbol (SProxy :: SProxy key)
135+
key = reflectSymbol (Proxy :: Proxy key)
136136
tail = oneRecord (Proxy :: Proxy rowlistTail) (Proxy :: Proxy row)
137137
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow
138138

139139
zeroRecord _ _ = insert zero tail
140140
where
141-
key = reflectSymbol (SProxy :: SProxy key)
141+
key = reflectSymbol (Proxy :: Proxy key)
142142
tail = zeroRecord (Proxy :: Proxy rowlistTail) (Proxy :: Proxy row)
143143
insert = unsafeSet key :: focus -> Record subrowTail -> Record subrow

src/Data/Show.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ instance showRecordFieldsCons
6969
showRecordFields _ record
7070
= cons (join ": " [ key, show focus ]) tail
7171
where
72-
key = reflectSymbol (SProxy :: SProxy key)
72+
key = reflectSymbol (Proxy :: Proxy key)
7373
focus = unsafeGet key record :: focus
7474
tail = showRecordFields (Proxy :: Proxy rowlistTail) record
7575

0 commit comments

Comments
 (0)