Skip to content

Commit e024991

Browse files
committed
Remove redundant constraints
GHC HEAD warns about those: ``` Data/Sequence.hs:432:12: warning: • Redundant constraint: Sized a • In the type signature for: squashL :: Sized a => Digit23 a -> Digit12 (Node a) -> Digit23 (Node a) Data/Sequence.hs:437:12: warning: • Redundant constraint: Sized a • In the type signature for: squashR :: Sized a => Digit12 (Node a) -> Digit23 a -> Digit23 (Node a) ```
1 parent 5f232df commit e024991

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Data/Sequence.hs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,7 @@ type Digit23 a = Node a
357357
-- class, but as it is we have to build up 'map23' explicitly through the
358358
-- recursion.
359359
aptyMiddle
360-
:: Sized c =>
361-
(c -> d)
360+
:: (c -> d)
362361
-> (c -> d)
363362
-> ((a -> b) -> c -> d)
364363
-> FingerTree (Elem (a -> b))
@@ -429,12 +428,12 @@ digit12ToDigit (One12 a) = One a
429428
digit12ToDigit (Two12 a b) = Two a b
430429

431430
-- Squash the first argument down onto the left side of the second.
432-
squashL :: Sized a => Digit23 a -> Digit12 (Node a) -> Digit23 (Node a)
431+
squashL :: Digit23 a -> Digit12 (Node a) -> Digit23 (Node a)
433432
squashL m (One12 n) = node2 m n
434433
squashL m (Two12 n1 n2) = node3 m n1 n2
435434

436435
-- Squash the second argument down onto the right side of the first
437-
squashR :: Sized a => Digit12 (Node a) -> Digit23 a -> Digit23 (Node a)
436+
squashR :: Digit12 (Node a) -> Digit23 a -> Digit23 (Node a)
438437
squashR (One12 n) m = node2 n m
439438
squashR (Two12 n1 n2) m = node3 n1 n2 m
440439

@@ -965,7 +964,7 @@ cycleN n (Seq xsFT) = case rigidify xsFT of
965964
(nodeToDigit sf)
966965

967966
cycleNMiddle
968-
:: Sized c => Int
967+
:: Int
969968
-> Rigid c
970969
-> FingerTree (Node c)
971970

0 commit comments

Comments
 (0)