Skip to content

Commit 48288c8

Browse files
committed
Merge pull request #9 from jonsterling/compiler-warnings
Remove spurious type quantifications (fix compiler warnings)
2 parents 915652d + cc6184c commit 48288c8

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/Data/Lens/Fold.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ filtered f = dimap (\x -> if f x then Right x else Left x) (either id id) <<< ri
144144

145145
-- | Replicates the elements of a fold.
146146
replicated
147-
:: forall r a b t f. (Applicative f, Contravariant f)
147+
:: forall a b t f. (Applicative f, Contravariant f)
148148
=> Int -> Optic (Star f) a b a t
149149
replicated n p = Star (flip go n <<< runStar p) where
150150
go x 0 = coerce (pure unit)
151151
go x n = x *> go x (n - 1)
152152

153153
-- | Folds over a `Foldable` container.
154154
folded
155-
:: forall f g a b t r. (Applicative f, Contravariant f, Foldable g)
155+
:: forall f g a b t. (Applicative f, Contravariant f, Foldable g)
156156
=> Optic (Star f) (g a) b a t
157157
folded p = Star $ foldr (\a r -> runStar p a *> r) (coerce $ pure unit)
158158

src/Data/Lens/Internal/Wander.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Data.Identity (Identity (..), runIdentity)
1212
-- | Class for profunctors that support polymorphic traversals.
1313
class (Strong p, Choice p) <= Wander p where
1414
wander
15-
:: forall f s t a b. (forall f. (Applicative f) => (a -> f b) -> s -> f t)
15+
:: forall s t a b. (forall f. (Applicative f) => (a -> f b) -> s -> f t)
1616
-> p a b -> p s t
1717

1818
instance wanderFunction :: Wander Function where

src/Data/Lens/Setter.purs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,28 @@ set l b = over l (const b)
3939
(.~) :: forall s t a b. Setter s t a b -> b -> s -> t
4040
(.~) = set
4141

42-
(+~) :: forall s t a a. (Semiring a) => Setter s t a a -> a -> s -> t
42+
(+~) :: forall s t a. (Semiring a) => Setter s t a a -> a -> s -> t
4343
(+~) p = over p <<< flip (+)
4444

45-
(*~) :: forall s t a a. (Semiring a) => Setter s t a a -> a -> s -> t
45+
(*~) :: forall s t a. (Semiring a) => Setter s t a a -> a -> s -> t
4646
(*~) p = over p <<< flip (*)
4747

48-
(-~) :: forall s t a a. (Ring a) => Setter s t a a -> a -> s -> t
48+
(-~) :: forall s t a. (Ring a) => Setter s t a a -> a -> s -> t
4949
(-~) p = over p <<< flip (-)
5050

51-
(//~) :: forall s t a a. (DivisionRing a) => Setter s t a a -> a -> s -> t
51+
(//~) :: forall s t a. (DivisionRing a) => Setter s t a a -> a -> s -> t
5252
(//~) p = over p <<< flip (/)
5353

54-
(||~) :: forall s t a a. (BooleanAlgebra a) => Setter s t a a -> a -> s -> t
54+
(||~) :: forall s t a. (BooleanAlgebra a) => Setter s t a a -> a -> s -> t
5555
(||~) p = over p <<< flip (||)
5656

57-
(&&~) :: forall s t a a. (BooleanAlgebra a) => Setter s t a a -> a -> s -> t
57+
(&&~) :: forall s t a. (BooleanAlgebra a) => Setter s t a a -> a -> s -> t
5858
(&&~) p = over p <<< flip (&&)
5959

60-
(<>~) :: forall s t a a. (Semigroup a) => Setter s t a a -> a -> s -> t
60+
(<>~) :: forall s t a. (Semigroup a) => Setter s t a a -> a -> s -> t
6161
(<>~) p = over p <<< flip (<>)
6262

63-
(++~) :: forall s t a a. (Semigroup a) => Setter s t a a -> a -> s -> t
63+
(++~) :: forall s t a. (Semigroup a) => Setter s t a a -> a -> s -> t
6464
(++~) p = over p <<< flip (++)
6565

6666
(?~) :: forall s t a b. Setter s t a (Maybe b) -> b -> s -> t

0 commit comments

Comments
 (0)