Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit 39e7dc0

Browse files
committed
Merge pull request #11 from jdegoes/ready/update-deps
update dependencies for the identity and prelude changes.
2 parents 821d5da + 7ce8c9d commit 39e7dc0

File tree

14 files changed

+22
-53
lines changed

14 files changed

+22
-53
lines changed

bower.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,22 @@
2424
"tests"
2525
],
2626
"dependencies": {
27-
"purescript-transformers": "~0.2.1",
28-
"purescript-foldable-traversable": "~0.1.3",
29-
"purescript-tuples": "~0.2.1",
27+
"purescript-transformers": "~0.3.0",
28+
"purescript-foldable-traversable": "~0.1.4",
29+
"purescript-tuples": "~0.2.2",
30+
"purescript-identity": "~0.1.0",
3031
"purescript-profunctor": "~0.0.1",
31-
"purescript-distributive": "~0.1.1",
32+
"purescript-distributive": "~0.2.0",
3233
"purescript-contravariant": "~0.0.1",
33-
"purescript-const": "~0.1.0",
34-
"purescript-maps": "~0.1.1",
34+
"purescript-const": "~0.1.1",
35+
"purescript-maps": "~0.1.3",
3536
"purescript-sets": "~0.1.0",
3637
"purescript-arrows": "~0.1.1",
37-
"purescript-enums": "~0.2.3",
38-
"purescript-bifunctors": "~0.0.4"
38+
"purescript-enums": "~0.2.4",
39+
"purescript-bifunctors": "~0.0.6"
3940
},
4041
"devDependencies": {
4142
"purescript-easy-ffi": "~1.0.1",
42-
"purescript-quickcheck": "~0.2.2"
43+
"purescript-strongcheck": "~0.4.14"
4344
}
4445
}

src/Control/Lens.purs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module Control.Lens
5050
, under
5151
, withIso
5252
-- Lens
53-
, (#~), (<#>), (??)
53+
, (#~), (??)
5454
, lens
5555
-- Prism
5656
, clonePrism
@@ -241,10 +241,8 @@ module Control.Lens
241241

242242
-- Lens
243243
infixl 1 #~
244-
infixl 1 <#>
245244
infixl 1 ??
246245
(#~) = Lens.(#~)
247-
(<#>) = Lens.(<#>)
248246
(??) = Lens.(??)
249247
lens = Lens.lens
250248

src/Control/Lens/At.purs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ module Control.Lens.At
1010
) where
1111

1212
import Control.Lens.Setter ((.~))
13-
import Control.Lens.Lens ((<#>))
1413
import Control.Lens.Type (LensP(), TraversalP())
15-
import Control.Monad.Identity (Identity(..))
14+
import Data.Identity (Identity(..))
1615

1716
import Data.Array (delete, elemIndex, snoc, updateAt)
1817
import Data.Maybe (maybe, Maybe(..))

src/Control/Lens/Getter.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Control.Lens.Getter
1111

1212
import Control.Lens.Internal.Indexed (Conjoined)
1313
import Control.Lens.Type (IndexPreservingGetter(), Optical())
14-
import Control.Monad.Identity (Identity())
14+
import Data.Identity (Identity())
1515
import Control.Monad.Reader.Class (reader, MonadReader)
1616
import Control.Monad.State.Class (gets, MonadState)
1717

src/Control/Lens/Internal/Indexed.purs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Control.Lens.Internal.Indexed where
33
import Control.Arrow.ArrowApply (ArrowApply)
44
import Control.Arrow.ArrowChoice (ArrowChoice)
55
import Control.Arrow.ArrowLoop (ArrowLoop)
6-
import Control.Monad.Identity (runIdentity, Identity(..))
6+
import Data.Identity (runIdentity, Identity(..))
77
import Control.Comonad (Comonad)
88

99
import Data.Distributive (Distributive)
@@ -46,14 +46,3 @@ module Control.Lens.Internal.Indexed where
4646
-- -> f t
4747
-- indexing f pafb s =
4848
-- snd $ runIndexing (f (\a -> Indexing (\n -> Tuple (n + 1) (indexed pafb n a))) s) 0
49-
50-
-- Orphan instances should be moved where they belong.
51-
52-
instance traversableIdentity :: Traversable Identity where
53-
traverse a2mb (Identity a) = Identity <$> a2mb a
54-
sequence (Identity ma) = Identity <$> ma
55-
56-
instance foldableIdentity :: Foldable Identity where
57-
foldr f z = runIdentity >>> flip f z
58-
foldl f z = runIdentity >>> f z
59-
foldMap a2m = runIdentity >>> a2m

src/Control/Lens/Internal/Setter.purs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Control.Lens.Internal.Setter where
22

3-
import Control.Monad.Identity (runIdentity, Identity(..))
3+
import Data.Identity (runIdentity, Identity(..))
44

55
import Data.Distributive (Distributive)
66
import Data.Foldable (foldl, foldr, foldMap, Foldable)
@@ -15,15 +15,4 @@ module Control.Lens.Internal.Setter where
1515
instance settableIdentity :: Settable Identity where
1616
untainted (Identity x) = x
1717
untaintedDot = rmap runIdentity
18-
taintedDot = rmap Identity
19-
20-
-- Move these orphan instances to the appropriate places.
21-
22-
instance foldableIdentity :: Foldable Identity where
23-
foldr f z (Identity x) = x `f` z
24-
foldl f z (Identity x) = z `f` x
25-
foldMap f (Identity x) = f x
26-
27-
instance traversableIdentity :: Traversable Identity where
28-
traverse a2mb (Identity x) = Identity <$> a2mb x
29-
sequence (Identity mx) = Identity <$> mx
18+
taintedDot = rmap Identity

src/Control/Lens/Iso.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Control.Lens.Iso
1515
import Control.Lens.Internal.Iso (Exchange(..))
1616
import Control.Lens.Prism (APrismP())
1717
import Control.Lens.Type (Iso(), IsoP())
18-
import Control.Monad.Identity (runIdentity, Identity(..))
18+
import Data.Identity (runIdentity, Identity(..))
1919

2020
import Data.Enum (fromEnum, toEnum, Enum)
2121
import Data.Maybe (maybe, Maybe(..))

src/Control/Lens/Lens.purs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module Control.Lens.Lens
22
( (#~)
3-
, (<#>)
43
, (??)
54
, lens
65
) where
@@ -9,7 +8,6 @@ module Control.Lens.Lens
98
import Control.Monad.State (execState, State())
109

1110
infixl 1 #~
12-
infixl 1 <#>
1311
infixl 1 ??
1412

1513
lens :: forall s t a b. (s -> a) -> (s -> b -> t) -> Lens s t a b
@@ -18,8 +16,5 @@ module Control.Lens.Lens
1816
(#~) :: forall a s. s -> State s a -> s
1917
(#~) s sa = execState sa s
2018

21-
(<#>) :: forall f a b. (Functor f) => f a -> (a -> b) -> f b
22-
(<#>) x f = f <$> x
23-
2419
(??) :: forall f a b. (Functor f) => f (a -> b) -> a -> f b
2520
(??) ff x = (\f -> f x) <$> ff

src/Control/Lens/Prism.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module Control.Lens.Prism
1818

1919
import Control.Lens.Internal.Prism (Market(..))
2020
import Control.Lens.Type (Lens(), Prism(), PrismP())
21-
import Control.Monad.Identity (runIdentity, Identity(..))
21+
import Data.Identity (runIdentity, Identity(..))
2222
import Control.MonadPlus (guard)
2323

2424
import Data.Profunctor (dimap, lmap, Profunctor)

src/Control/Lens/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@
195195

196196
(#~) :: forall a s. s -> State s a -> s
197197

198-
(<#>) :: forall f a b. (Functor f) => f a -> (a -> b) -> f b
199-
200198
(??) :: forall f a b. (Functor f) => f (a -> b) -> a -> f b
201199

202200
lens :: forall s t a b. (s -> a) -> (s -> b -> t) -> Lens s t a b

src/Control/Lens/Review.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Control.Lens.Review
1616
import Control.Lens.Getter (to, view, Getting())
1717
import Control.Lens.Internal.Setter (Settable)
1818
import Control.Lens.Type (Getter(), Optic(), OpticP())
19-
import Control.Monad.Identity (runIdentity, Identity(..))
19+
import Data.Identity (runIdentity, Identity(..))
2020
import Control.Monad.Reader.Class (reader, MonadReader)
2121
import Control.Monad.State.Class (gets, MonadState)
2222

src/Control/Lens/Setter.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module Control.Lens.Setter
4040

4141
import Control.Lens.Internal.Setter (taintedDot, untaintedDot, Settable)
4242
import Control.Lens.Type (Optical(), Setter())
43-
import Control.Monad.Identity (runIdentity, Identity(..))
43+
import Data.Identity (runIdentity, Identity(..))
4444
import Control.Monad.State.Class (modify, MonadState)
4545

4646
import Data.Contravariant ((>$<), Contravariant)

src/Control/Lens/Tuple.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Control.Lens.Tuple
44
, _2
55
) where
66

7-
-- import Control.Monad.Identity (Identity(..))
7+
-- import Data.Identity (Identity(..))
88
import Control.Lens.Type (Lens())
99

1010
import Data.Tuple (Tuple(..))

src/Data/Profunctor/Rep.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Data.Profunctor.Rep where
22

3-
import Control.Monad.Identity (runIdentity, Identity(..))
3+
import Data.Identity (runIdentity, Identity(..))
44

55
import Data.Profunctor
66

0 commit comments

Comments
 (0)