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

Commit 013d589

Browse files
authored
Merge pull request #34 from jacereda/master
Updates for 0.11
2 parents 6a5c403 + b275a4c commit 013d589

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"tests"
2424
],
2525
"dependencies": {
26-
"purescript-const": "^2.0.0",
27-
"purescript-distributive": "^2.0.0",
28-
"purescript-profunctor": "^2.0.0"
26+
"purescript-const": "^3.0.0",
27+
"purescript-distributive": "^3.0.0",
28+
"purescript-profunctor": "^3.0.0"
2929
},
3030
"devDependencies": {
31-
"purescript-psci-support": "^2.0.0",
32-
"purescript-console": "^2.0.0"
31+
"purescript-psci-support": "^3.0.0",
32+
"purescript-console": "^3.0.0"
3333
}
3434
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"test": "pulp test"
2424
},
2525
"devDependencies": {
26-
"pulp": "^10.0.0",
27-
"purescript": "^0.10.2",
28-
"purescript-psa": "^0.4.0",
29-
"rimraf": "^2.5.4"
26+
"pulp": "^11.0.0",
27+
"purescript": "^0.11.1",
28+
"purescript-psa": "^0.5.0",
29+
"rimraf": "^2.6.1"
3030
}
3131
}

src/Optic/Getter.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Optic.Getter
1616

1717
infixl 8 weiv as ^.
1818

19-
to :: forall a s f p. (Contravariant f, Functor f, Profunctor p) => (s -> a) -> p a (f a) -> p s (f s)
19+
to :: forall a s f p. Contravariant f => Functor f => Profunctor p => (s -> a) -> p a (f a) -> p s (f s)
2020
to s2a = dimap s2a coerce
2121

2222
view :: forall s a. Getting a s a -> s -> a

src/Optic/Laws/Lens.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Optic.Laws.Lens where
88
import Prelude (class Eq, (&&), (==))
99

1010
-- | A valid `Lens` satisfies all three of the following laws.
11-
validLens :: forall s a. (Eq a, Eq s) => Lens' s a -> s -> a -> a -> a -> Boolean
11+
validLens :: forall s a. Eq a => Eq s => Lens' s a -> s -> a -> a -> a -> Boolean
1212
validLens l s x y z = getSet l s && setGet l s x && setSet l s y z
1313

1414
-- | If you get a value out, and then set it immediately back,

src/Optic/Prism.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module Optic.Prism
2626
, const, not, pure, unit
2727
)
2828

29-
clonePrism :: forall f p s t a b. (Applicative f, Choice p) => APrism s t a b -> p a (f b) -> p s (f t)
29+
clonePrism :: forall f p s t a b. Applicative f => Choice p => APrism s t a b -> p a (f b) -> p s (f t)
3030
clonePrism stab = withPrism stab prism
3131

3232
is :: forall s t a b. APrism s t a b -> s -> Boolean
@@ -48,7 +48,7 @@ module Optic.Prism
4848
only :: forall a. Eq a => a -> Prism' a Unit
4949
only x = nearly x ((==) x)
5050

51-
prism :: forall f p s t a b. (Applicative f, Choice p) => (b -> t) -> (s -> Either t a) -> p a (f b) -> p s (f t)
51+
prism :: forall f p s t a b. Applicative f => Choice p => (b -> t) -> (s -> Either t a) -> p a (f b) -> p s (f t)
5252
prism b2t s2Eta pafb = dimap s2Eta (either pure ((<$>) b2t)) (right pafb)
5353

5454
prism' :: forall s a b. (b -> s) -> (s -> Maybe a) -> Prism s s a b

src/Optic/Setter.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module Optic.Setter
6161
set' :: forall s a. ASetter' s a -> a -> s -> s
6262
set' sa a = unwrap <<< sa (Identity <<< const a)
6363

64-
sets :: forall p q f s t a b. (Profunctor p, Profunctor q, Settable f) => (p a b -> q s t) -> Optical p q f s t a b
64+
sets :: forall p q f s t a b. Profunctor p => Profunctor q => Settable f => (p a b -> q s t) -> Optical p q f s t a b
6565
sets pab2qst = untaintedDot >>> pab2qst >>> taintedDot
6666

6767
add :: forall s t a. Semiring a => ASetter s t a a -> a -> s -> t

src/Optic/Types.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ module Optic.Types where
2020

2121
type Getting r s a = (a -> Const r a) -> s -> Const r s
2222

23-
type Getter s a = forall f. (Contravariant f, Functor f) => (a -> f a) -> s -> f s
23+
type Getter s a = forall f. Contravariant f => Functor f => (a -> f a) -> s -> f s
2424

25-
type Lens s t a b = forall f. (Functor f) => (a -> f b) -> s -> f t
25+
type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t
2626
type Lens' s a = Lens s s a a
2727

2828
type Optical p q f s t a b = p a (f b) -> q s (f t)
2929
type Optical' p q f s a = Optical p q f s s a a
3030

31-
type Prism s t a b = forall f p. (Applicative f, Choice p) => p a (f b) -> p s (f t)
31+
type Prism s t a b = forall f p. Applicative f => Choice p => p a (f b) -> p s (f t)
3232
type Prism' s a = Prism s s a a
3333

34-
type Setter s t a b = forall f. (Settable f) => (a -> f b) -> s -> f t
34+
type Setter s t a b = forall f. Settable f => (a -> f b) -> s -> f t
3535
type Setter' s a = Setter s s a a
3636

3737
type Setting p s t a b = p a (Identity b) -> s -> Identity t

test/Main.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Test.Main where
55

66
import Optic.Core
77

8-
import Prelude (class Show, Unit, (#), ($), (+), (<>), bind, const, show)
8+
import Prelude (class Show, Unit, (#), ($), (+), (<>), const, show, discard)
99

1010
newtype Foo bar baz = Foo
1111
{ foo :: { bar :: bar }

0 commit comments

Comments
 (0)