Skip to content

Commit dc1bd3f

Browse files
JordanMartinezSerhii Khoma
and
Serhii Khoma
authored
Update to v0.14.0-rc3 (#106)
* fix: Fix `Foldable1 (Coyoneda f)` instance * Update TAG to v0.14.0-rc3; dependencies to master; psa to v0.8.0 * Temporarily disable benchmarks `purescript-benchotron` is not a core repo. By including it here, this repo will never pass CI because benchotron will pull in non-master dependencies. This should be re-added later. Co-authored-by: Serhii Khoma <[email protected]>
1 parent d45e652 commit dc1bd3f

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
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
@@ -15,7 +16,7 @@ script:
1516
- bower install --production
1617
- npm run -s build
1718
- bower install
18-
- npm run -s build:benchmark
19+
# - npm run -s build:benchmark
1920
- npm -s test
2021
after_success:
2122
- >-

bower.json

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,23 @@
2323
"package.json"
2424
],
2525
"dependencies": {
26-
"purescript-catenable-lists": "^5.0.0",
27-
"purescript-control": "^4.0.0",
28-
"purescript-distributive": "^4.0.0",
29-
"purescript-either": "^4.0.0",
30-
"purescript-exists": "^4.0.0",
31-
"purescript-foldable-traversable": "^4.0.0",
32-
"purescript-invariant": "^4.0.0",
33-
"purescript-lazy": "^4.0.0",
34-
"purescript-maybe": "^4.0.0",
35-
"purescript-prelude": "^4.0.0",
36-
"purescript-tailrec": "^4.0.0",
37-
"purescript-transformers": "^4.0.0",
38-
"purescript-tuples": "^5.0.0",
39-
"purescript-unsafe-coerce": "^4.0.0"
26+
"purescript-catenable-lists": "master",
27+
"purescript-control": "master",
28+
"purescript-distributive": "master",
29+
"purescript-either": "master",
30+
"purescript-exists": "master",
31+
"purescript-foldable-traversable": "master",
32+
"purescript-invariant": "master",
33+
"purescript-lazy": "master",
34+
"purescript-maybe": "master",
35+
"purescript-prelude": "master",
36+
"purescript-tailrec": "master",
37+
"purescript-transformers": "master",
38+
"purescript-tuples": "master",
39+
"purescript-unsafe-coerce": "master"
4040
},
4141
"devDependencies": {
42-
"purescript-console": "^4.0.0",
43-
"purescript-functors": "^3.0.0",
44-
"purescript-benchotron": "^7.0.1"
42+
"purescript-console": "master",
43+
"purescript-functors": "master"
4544
}
4645
}

src/Data/Coyoneda.purs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import Data.Exists (Exists, runExists, mkExists)
2222
import Data.Foldable (class Foldable, foldMap, foldl, foldr)
2323
import Data.Functor.Invariant (class Invariant, imapF)
2424
import Data.Ord (class Ord1, compare1)
25-
import Data.Semigroup.Foldable (class Foldable1, foldMap1)
25+
import Data.Semigroup.Foldable (class Foldable1, foldMap1, foldr1Default, foldl1Default)
2626
import Data.Semigroup.Traversable (class Traversable1, sequence1, traverse1)
2727
import Data.Traversable (class Traversable, traverse)
2828

@@ -126,6 +126,8 @@ instance traversableCoyoneda :: Traversable f => Traversable (Coyoneda f) where
126126
instance foldable1Coyoneda :: Foldable1 f => Foldable1 (Coyoneda f) where
127127
foldMap1 f = unCoyoneda \k -> foldMap1 (f <<< k)
128128
fold1 = unCoyoneda \k -> foldMap1 k
129+
foldr1 = foldr1Default
130+
foldl1 = foldl1Default
129131

130132
instance traversable1Coyoneda :: Traversable1 f => Traversable1 (Coyoneda f) where
131133
traverse1 f = unCoyoneda \k -> map liftCoyoneda <<< traverse1 (f <<< k)

0 commit comments

Comments
 (0)