Skip to content

Commit 3f12411

Browse files
Remove unused names (#52)
1 parent 2a2e02e commit 3f12411

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/Data/Functor/Variant.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class FoldableVFRL rl row <= TraversableVFRL rl row | rl -> row where
9494
traverseVFRL :: forall proxy f a b. Applicative f => proxy rl -> (a -> f b) -> VariantF row a -> f (VariantF row b)
9595

9696
instance traversableNil :: TraversableVFRL RL.Nil () where
97-
traverseVFRL _ f = case_
97+
traverseVFRL _ _ = case_
9898

9999
instance traversableCons ::
100100
( IsSymbol k

src/Data/Variant.purs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,6 @@ instance enumVariantCons ∷ (VariantBoundedEnums rs, BoundedEnum a) ⇒ Variant
319319
, cardinality: coerceCardinality cardinality
320320
}
321321

322-
coerceA a VariantCase
323-
coerceA = unsafeCoerce
324-
325322
coerceAToMbA (a Maybe a) VariantCase Maybe VariantCase
326323
coerceAToMbA = unsafeCoerce
327324

src/Data/Variant/Internal.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ lookupPred (VariantRep rep) = go1
174174
| otherwise → go2 t1 b1 d1 ts1 bs1 ds1
175175
_, _, _ → impossible "pred"
176176

177-
go2 t1 b1 d1 = case _, _, _ of
177+
go2 t1 b1 _ = case _, _, _ of
178178
L.Cons t2 ts2, L.Cons b2 bs2, L.Cons d2 ds2
179179
| t2 == rep.type →
180180
case d2.pred rep.value of
@@ -193,7 +193,7 @@ lookupSucc
193193
lookupSucc (VariantRep rep) = go
194194
where
195195
go = case _, _, _ of
196-
L.Cons t1 ts1, L.Cons b1 bs1, L.Cons d1 ds1
196+
L.Cons t1 ts1, L.Cons _ bs1, L.Cons d1 ds1
197197
| t1 == rep.type →
198198
case d1.succ rep.value of
199199
Just z → Just $ VariantRep { type: t1, value: z }

0 commit comments

Comments
 (0)