File tree 5 files changed +9
-5
lines changed 5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,12 @@ Notable changes to this project are documented in this file. The format is based
7
7
Breaking changes:
8
8
9
9
New features:
10
+ - Export ` mapCont ` and ` withCont ` functions originally added in #70 by @parsonsmatt (#139 by @JordanMartinez )
10
11
11
12
Bugfixes:
12
13
13
14
Other improvements:
15
+ - Fix warnings revealed by v0.14.1 PS release (#139 by @JordanMartinez )
14
16
15
17
## [ v5.0.0] ( https://github.com/purescript/purescript-transformers/releases/tag/v5.0.0 ) - 2021-02-26
16
18
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ instance extendEnvT :: Extend w => Extend (EnvT e w) where
42
42
extend f (EnvT (Tuple e x)) = EnvT $ Tuple e (f <$> ((Tuple e >>> EnvT ) <<= x))
43
43
44
44
instance comonadEnvT :: Comonad w => Comonad (EnvT e w ) where
45
- extract (EnvT (Tuple e x)) = extract x
45
+ extract (EnvT (Tuple _ x)) = extract x
46
46
47
47
instance comonadTransEnvT :: ComonadTrans (EnvT e ) where
48
- lower (EnvT (Tuple e x)) = x
48
+ lower (EnvT (Tuple _ x)) = x
49
49
50
50
instance foldableEnvT :: Foldable f => Foldable (EnvT e f ) where
51
51
foldl fn a (EnvT (Tuple _ x)) = foldl fn a x
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ seeks :: forall s a w. ComonadStore s w => (s -> s) -> w a -> w a
52
52
seeks f = peeks f <<< duplicate
53
53
54
54
instance comonadStoreStoreT :: Comonad w => ComonadStore s (StoreT s w ) where
55
- pos (StoreT (Tuple f s)) = s
55
+ pos (StoreT (Tuple _ s)) = s
56
56
peek s (StoreT (Tuple f _)) = extract f s
57
57
58
58
instance comonadStoreEnvT :: ComonadStore s w => ComonadStore s (EnvT e w ) where
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ module Control.Monad.Cont
4
4
( Cont
5
5
, cont
6
6
, runCont
7
+ , mapCont
8
+ , withCont
7
9
, module Control.Monad.Cont.Trans
8
10
, module Control.Monad.Cont.Class
9
11
) where
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ repeat = iterate identity
142
142
143
143
-- | Take a number of elements from the front of a list.
144
144
take :: forall f a . Applicative f => Int -> ListT f a -> ListT f a
145
- take 0 fa = nil
145
+ take 0 _ = nil
146
146
take n fa = stepMap f fa where
147
147
f (Yield a s) = Yield a (take (n - 1 ) <$> s)
148
148
f (Skip s) = Skip (take n <$> s)
@@ -159,7 +159,7 @@ takeWhile f = stepMap g where
159
159
drop :: forall f a . Applicative f => Int -> ListT f a -> ListT f a
160
160
drop 0 fa = fa
161
161
drop n fa = stepMap f fa where
162
- f (Yield a s) = Skip (drop (n - 1 ) <$> s)
162
+ f (Yield _ s) = Skip (drop (n - 1 ) <$> s)
163
163
f (Skip s) = Skip (drop n <$> s)
164
164
f Done = Done
165
165
You can’t perform that action at this time.
0 commit comments