Skip to content

Commit 8eeb3d5

Browse files
JordanMartinezkl0tlSerhii Khoma
authored
Update to v0.14.0-rc3 (#35)
* Add roles declarations to forbid unsafe coercions * fix: Fix `Foldable1 NonEmptySet` instance * Update TAG to v0.14.0-rc3; dependencies to master; psa to v0.8.0 Co-authored-by: Cyril Sobierajewicz <[email protected]> Co-authored-by: Serhii Khoma <[email protected]>
1 parent 3857c6c commit 8eeb3d5

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
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: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616
"package.json"
1717
],
1818
"dependencies": {
19-
"purescript-arrays": "^5.0.0",
20-
"purescript-foldable-traversable": "^4.0.0",
21-
"purescript-gen": "^2.0.0",
22-
"purescript-lists": "^5.2.0",
23-
"purescript-maybe": "^4.0.0",
24-
"purescript-partial": "^2.0.0",
25-
"purescript-prelude": "^4.0.0",
26-
"purescript-st": "^4.0.0",
27-
"purescript-tailrec": "^4.0.0",
28-
"purescript-tuples": "^5.0.0",
29-
"purescript-unfoldable": "^4.0.0",
30-
"purescript-unsafe-coerce": "^4.0.0"
19+
"purescript-arrays": "master",
20+
"purescript-foldable-traversable": "master",
21+
"purescript-gen": "master",
22+
"purescript-lists": "master",
23+
"purescript-maybe": "master",
24+
"purescript-partial": "master",
25+
"purescript-prelude": "master",
26+
"purescript-st": "master",
27+
"purescript-tailrec": "master",
28+
"purescript-tuples": "master",
29+
"purescript-unfoldable": "master",
30+
"purescript-unsafe-coerce": "master"
3131
},
3232
"devDependencies": {
33-
"purescript-quickcheck": "^6.0.0",
34-
"purescript-minibench": "^2.0.0",
35-
"purescript-console": "^4.0.0",
36-
"purescript-assert": "^4.0.0"
33+
"purescript-quickcheck": "master",
34+
"purescript-minibench": "master",
35+
"purescript-console": "master",
36+
"purescript-assert": "master"
3737
}
3838
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"devDependencies": {
1212
"eslint": "^4.19.1",
1313
"pulp": "^15.0.0",
14-
"purescript-psa": "^0.6.0",
14+
"purescript-psa": "^0.8.0",
1515
"rimraf": "^2.6.2"
1616
}
1717
}

src/Data/Map/Internal.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ data Map k v
6969
| Two (Map k v) k v (Map k v)
7070
| Three (Map k v) k v (Map k v) k v (Map k v)
7171

72+
type role Map nominal representational
73+
7274
-- Internal use
7375
toAscArray :: forall k v. Map k v -> Array (Tuple k v)
7476
toAscArray = toUnfoldable

src/Data/Set/NonEmpty.purs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import Data.List as List
3333
import Data.List.NonEmpty (NonEmptyList)
3434
import Data.Maybe (Maybe(..), fromJust)
3535
import Data.Ord (class Ord1)
36-
import Data.Semigroup.Foldable (class Foldable1, foldMap1)
36+
import Data.Semigroup.Foldable (class Foldable1, foldMap1, foldr1, foldl1)
3737
import Data.Set (Set)
3838
import Data.Set as Set
3939
import Data.Tuple (Tuple(..))
@@ -53,6 +53,8 @@ derive newtype instance foldableNonEmptySet :: Foldable NonEmptySet
5353
instance foldable1NonEmptySet :: Foldable1 NonEmptySet where
5454
foldMap1 f = foldMap1 f <<< (toUnfoldable1 :: forall a. NonEmptySet a -> NonEmptyList a)
5555
fold1 = foldMap1 identity
56+
foldr1 f = foldr1 f <<< (toUnfoldable1 :: forall a. NonEmptySet a -> NonEmptyList a)
57+
foldl1 f = foldl1 f <<< (toUnfoldable1 :: forall a. NonEmptySet a -> NonEmptyList a)
5658

5759
instance showNonEmptySet :: Show a => Show (NonEmptySet a) where
5860
show s = "(fromFoldable1 " <> show (toUnfoldable1 s :: NonEmptyList a) <> ")"

0 commit comments

Comments
 (0)