Skip to content

Commit 02708f0

Browse files
authored
Update to v0.14.0-rc3 (#24)
* Update TAG to v0.14.0-rc3; dependencies to master; psa to v0.8.0 * Add kind signatures * Add test script to package.json * Drop unicode usage from kind signatures
1 parent bf38b37 commit 02708f0

File tree

10 files changed

+61
-14
lines changed

10 files changed

+61
-14
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ node_js: stable
55
env:
66
- PATH=$HOME/purescript:$PATH
77
install:
8-
- TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest))
8+
# - TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest))
9+
- TAG=v0.14.0-rc3
910
- curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
1011
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
1112
- chmod a+x $HOME/purescript

bower.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
"package.json"
1818
],
1919
"dependencies": {
20-
"purescript-bifunctors": "^4.0.0",
21-
"purescript-const": "^4.0.0",
22-
"purescript-control": "^4.0.0",
23-
"purescript-either": "^4.0.0",
24-
"purescript-foldable-traversable": "^4.0.0",
25-
"purescript-maybe": "^4.0.0",
26-
"purescript-newtype": "^3.0.0",
27-
"purescript-prelude": "^4.0.0",
28-
"purescript-tuples": "^5.0.0",
29-
"purescript-unsafe-coerce": "^4.0.0"
20+
"purescript-bifunctors": "master",
21+
"purescript-const": "master",
22+
"purescript-control": "master",
23+
"purescript-either": "master",
24+
"purescript-foldable-traversable": "master",
25+
"purescript-maybe": "master",
26+
"purescript-newtype": "master",
27+
"purescript-prelude": "master",
28+
"purescript-tuples": "master",
29+
"purescript-unsafe-coerce": "master"
3030
},
3131
"devDependencies": {
32-
"purescript-assert": "^4.0.0"
32+
"purescript-assert": "master"
3333
}
3434
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "pulp build -- --censor-lib --strict"
5+
"build": "pulp build -- --censor-lib --strict",
6+
"test": "pulp test"
67
},
78
"devDependencies": {
89
"pulp": "^15.0.0",
9-
"purescript-psa": "^0.6.0",
10+
"purescript-psa": "^0.8.0",
1011
"rimraf": "^2.6.2"
1112
}
1213
}

src/Data/Functor/App.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import Data.Traversable (class Traversable)
2020
import Data.TraversableWithIndex (class TraversableWithIndex)
2121
import Unsafe.Coerce (unsafeCoerce)
2222

23+
newtype App :: forall k. (k -> Type) -> k -> Type
2324
newtype App f a = App (f a)
2425

2526
hoistApp :: forall f g. (f ~> g) -> App f ~> App g

src/Data/Functor/Compose.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import Data.TraversableWithIndex (class TraversableWithIndex, traverseWithIndex)
1717
import Data.Tuple (Tuple, curry)
1818

1919
-- | `Compose f g` is the composition of the two functors `f` and `g`.
20+
newtype Compose :: forall k1 k2. (k2 -> Type) -> (k1 -> k2) -> k1 -> Type
2021
newtype Compose f g a = Compose (f (g a))
2122

2223
bihoistCompose

src/Data/Functor/Coproduct.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Data.Traversable (class Traversable, traverse, sequence)
1616
import Data.TraversableWithIndex (class TraversableWithIndex, traverseWithIndex)
1717

1818
-- | `Coproduct f g` is the coproduct of two functors `f` and `g`
19+
newtype Coproduct :: forall k. (k -> Type) -> (k -> Type) -> k -> Type
1920
newtype Coproduct f g a = Coproduct (Either (f a) (g a))
2021

2122
-- | Left injection

src/Data/Functor/Coproduct/Inject.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Data.Either (Either(..))
66
import Data.Functor.Coproduct (Coproduct(..), coproduct)
77
import Data.Maybe (Maybe(..))
88

9+
class Inject :: forall k. (k -> Type) -> (k -> Type) -> Constraint
910
class Inject f g where
1011
inj :: forall a. f a -> g a
1112
prj :: forall a. g a -> Maybe (f a)

src/Data/Functor/Coproduct/Nested.purs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,46 @@ import Data.Either (Either(..))
77
import Data.Functor.Coproduct (Coproduct(..), coproduct, left, right)
88
import Data.Newtype (unwrap)
99

10+
type Coproduct1 :: forall k. (k -> Type) -> k -> Type
1011
type Coproduct1 a = C2 a (Const Void)
12+
type Coproduct2 :: forall k. (k -> Type) -> (k -> Type) -> k -> Type
1113
type Coproduct2 a b = C3 a b (Const Void)
14+
type Coproduct3 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1215
type Coproduct3 a b c = C4 a b c (Const Void)
16+
type Coproduct4 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1317
type Coproduct4 a b c d = C5 a b c d (Const Void)
18+
type Coproduct5 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1419
type Coproduct5 a b c d e = C6 a b c d e (Const Void)
20+
type Coproduct6 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1521
type Coproduct6 a b c d e f = C7 a b c d e f (Const Void)
22+
type Coproduct7 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1623
type Coproduct7 a b c d e f g = C8 a b c d e f g (Const Void)
24+
type Coproduct8 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1725
type Coproduct8 a b c d e f g h = C9 a b c d e f g h (Const Void)
26+
type Coproduct9 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1827
type Coproduct9 a b c d e f g h i = C10 a b c d e f g h i (Const Void)
28+
type Coproduct10 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1929
type Coproduct10 a b c d e f g h i j = C11 a b c d e f g h i j (Const Void)
2030

31+
type C2 :: forall k. (k -> Type) -> (k -> Type) -> k -> Type
2132
type C2 a z = Coproduct a z
33+
type C3 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2234
type C3 a b z = Coproduct a (C2 b z)
35+
type C4 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2336
type C4 a b c z = Coproduct a (C3 b c z)
37+
type C5 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2438
type C5 a b c d z = Coproduct a (C4 b c d z)
39+
type C6 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2540
type C6 a b c d e z = Coproduct a (C5 b c d e z)
41+
type C7 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2642
type C7 a b c d e f z = Coproduct a (C6 b c d e f z)
43+
type C8 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2744
type C8 a b c d e f g z = Coproduct a (C7 b c d e f g z)
45+
type C9 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2846
type C9 a b c d e f g h z = Coproduct a (C8 b c d e f g h z)
47+
type C10 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2948
type C10 a b c d e f g h i z = Coproduct a (C9 b c d e f g h i z)
49+
type C11 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
3050
type C11 a b c d e f g h i j z = Coproduct a (C10 b c d e f g h i j z)
3151

3252
infixr 6 coproduct as <\/>

src/Data/Functor/Product.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Data.TraversableWithIndex (class TraversableWithIndex, traverseWithIndex)
1616
import Data.Tuple (Tuple(..), fst, snd)
1717

1818
-- | `Product f g` is the product of the two functors `f` and `g`.
19+
newtype Product :: forall k. (k -> Type) -> (k -> Type) -> k -> Type
1920
newtype Product f g a = Product (Tuple (f a) (g a))
2021

2122
-- | Create a product.

src/Data/Functor/Product/Nested.purs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,46 @@ import Data.Const (Const(..))
66
import Data.Functor.Product (Product(..), product)
77
import Data.Tuple (Tuple(..))
88

9+
type Product1 :: forall k. (k -> Type) -> k -> Type
910
type Product1 a = T2 a (Const Unit)
11+
type Product2 :: forall k. (k -> Type) -> (k -> Type) -> k -> Type
1012
type Product2 a b = T3 a b (Const Unit)
13+
type Product3 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1114
type Product3 a b c = T4 a b c (Const Unit)
15+
type Product4 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1216
type Product4 a b c d = T5 a b c d (Const Unit)
17+
type Product5 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1318
type Product5 a b c d e= T6 a b c d e (Const Unit)
19+
type Product6 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1420
type Product6 a b c d e f = T7 a b c d e f (Const Unit)
21+
type Product7 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1522
type Product7 a b c d e f g = T8 a b c d e f g (Const Unit)
23+
type Product8 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1624
type Product8 a b c d e f g h = T9 a b c d e f g h (Const Unit)
25+
type Product9 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1726
type Product9 a b c d e f g h i = T10 a b c d e f g h i (Const Unit)
27+
type Product10 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
1828
type Product10 a b c d e f g h i j = T11 a b c d e f g h i j (Const Unit)
1929

30+
type T2 :: forall k. (k -> Type) -> (k -> Type) -> k -> Type
2031
type T2 a z = Product a z
32+
type T3 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2133
type T3 a b z = Product a (T2 b z)
34+
type T4 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2235
type T4 a b c z = Product a (T3 b c z)
36+
type T5 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2337
type T5 a b c d z = Product a (T4 b c d z)
38+
type T6 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2439
type T6 a b c d e z = Product a (T5 b c d e z)
40+
type T7 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2541
type T7 a b c d e f z = Product a (T6 b c d e f z)
42+
type T8 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2643
type T8 a b c d e f g z = Product a (T7 b c d e f g z)
44+
type T9 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2745
type T9 a b c d e f g h z = Product a (T8 b c d e f g h z)
46+
type T10 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2847
type T10 a b c d e f g h i z = Product a (T9 b c d e f g h i z)
48+
type T11 :: forall k. (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> (k -> Type) -> k -> Type
2949
type T11 a b c d e f g h i j z = Product a (T10 b c d e f g h i j z)
3050

3151
infixr 6 product as </\>

0 commit comments

Comments
 (0)