Skip to content

Commit f96c3ed

Browse files
committed
Bump deps for compiler/0.12
1 parent 3265868 commit f96c3ed

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"package.json"
1818
],
1919
"dependencies": {
20-
"purescript-control": "^3.0.0",
21-
"purescript-newtype": "^2.0.0"
20+
"purescript-control": "purescript/purescript-control#compiler/0.12",
21+
"purescript-newtype": "purescript/purescript-newtype#compiler/0.12"
2222
}
2323
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"build": "pulp build -- --censor-lib --strict"
66
},
77
"devDependencies": {
8-
"pulp": "^10.0.4",
9-
"purescript-psa": "^0.5.0-rc.1",
10-
"rimraf": "^2.6.1"
8+
"pulp": "^12.0.1",
9+
"purescript-psa": "^0.6.0",
10+
"rimraf": "^2.6.2"
1111
}
1212
}

src/Control/Biapply.purs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Control.Biapply where
22

3-
import Data.Function (const, id)
3+
import Data.Function (const, identity)
44

55
import Data.Bifunctor (class Bifunctor, bimap)
66

@@ -10,7 +10,7 @@ import Data.Bifunctor (class Bifunctor, bimap)
1010
-- | ```purescript
1111
-- | bipure f g <<$>> x <<*>> y
1212
-- | ```
13-
infixl 4 id as <<$>>
13+
infixl 4 identity as <<$>>
1414

1515
-- | `Biapply` captures type constructors of two arguments which support lifting of
1616
-- | functions of one or more arguments, in the sense of `Apply`.
@@ -21,7 +21,7 @@ infixl 4 biapply as <<*>>
2121

2222
-- | Keep the results of the second computation.
2323
biapplyFirst :: forall w a b c d. Biapply w => w a b -> w c d -> w c d
24-
biapplyFirst a b = bimap (const id) (const id) <<$>> a <<*>> b
24+
biapplyFirst a b = bimap (const identity) (const identity) <<$>> a <<*>> b
2525

2626
infixl 4 biapplyFirst as *>>
2727

src/Data/Bifunctor.purs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Data.Bifunctor where
22

3-
import Control.Category (id)
3+
import Control.Category (identity)
44

55
-- | A `Bifunctor` is a `Functor` from the pair category `(Type, Type)` to `Type`.
66
-- |
@@ -12,16 +12,16 @@ import Control.Category (id)
1212
-- |
1313
-- | Laws:
1414
-- |
15-
-- | - Identity: `bimap id id == id`
15+
-- | - Identity: `bimap identity identity == identity`
1616
-- | - Composition: `bimap f1 g1 <<< bimap f2 g2 == bimap (f1 <<< f2) (g1 <<< g2)`
1717
-- |
1818
class Bifunctor f where
1919
bimap :: forall a b c d. (a -> b) -> (c -> d) -> f a c -> f b d
2020

2121
-- | Map a function over the first type argument of a `Bifunctor`.
2222
lmap :: forall f a b c. Bifunctor f => (a -> b) -> f a c -> f b c
23-
lmap f = bimap f id
23+
lmap f = bimap f identity
2424

2525
-- | Map a function over the second type arguments of a `Bifunctor`.
2626
rmap :: forall f a b c. Bifunctor f => (b -> c) -> f a b -> f a c
27-
rmap = bimap id
27+
rmap = bimap identity

0 commit comments

Comments
 (0)