Skip to content

Commit cc98047

Browse files
Update to v0.14.0-rc3 (#129)
* Update TAG to v0.14.0-rc3; dependencies to master; psa to v0.8.0 * Account for `fromRight` breaking change
1 parent 5b0351d commit cc98047

File tree

4 files changed

+26
-24
lines changed

4 files changed

+26
-24
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: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@
1616
"package.json"
1717
],
1818
"dependencies": {
19-
"purescript-arrays": "^5.0.0",
20-
"purescript-control": "^4.0.0",
21-
"purescript-either": "^4.0.0",
22-
"purescript-enums": "^4.0.0",
23-
"purescript-foldable-traversable": "^4.0.0",
24-
"purescript-gen": "^2.0.0",
25-
"purescript-integers": "^4.0.0",
26-
"purescript-maybe": "^4.0.0",
27-
"purescript-newtype": "^3.0.0",
28-
"purescript-nonempty": "^5.0.0",
29-
"purescript-partial": "^2.0.0",
30-
"purescript-prelude": "^4.0.0",
31-
"purescript-tailrec": "^4.0.0",
32-
"purescript-tuples": "^5.0.0",
33-
"purescript-unfoldable": "^4.0.0",
34-
"purescript-unsafe-coerce": "^4.0.0"
19+
"purescript-arrays": "master",
20+
"purescript-control": "master",
21+
"purescript-either": "master",
22+
"purescript-enums": "master",
23+
"purescript-foldable-traversable": "master",
24+
"purescript-gen": "master",
25+
"purescript-integers": "master",
26+
"purescript-maybe": "master",
27+
"purescript-newtype": "master",
28+
"purescript-nonempty": "master",
29+
"purescript-partial": "master",
30+
"purescript-prelude": "master",
31+
"purescript-tailrec": "master",
32+
"purescript-tuples": "master",
33+
"purescript-unfoldable": "master",
34+
"purescript-unsafe-coerce": "master"
3535
},
3636
"devDependencies": {
37-
"purescript-assert": "^4.0.0",
38-
"purescript-console": "^4.0.0",
39-
"purescript-minibench": "^2.0.0"
37+
"purescript-assert": "master",
38+
"purescript-console": "master",
39+
"purescript-minibench": "master"
4040
}
4141
}

package.json

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

src/Data/String/Regex/Unsafe.purs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ module Data.String.Regex.Unsafe
22
( unsafeRegex
33
) where
44

5-
import Data.Either (fromRight)
5+
import Control.Category (identity)
6+
import Data.Either (either)
67
import Data.String.Regex (Regex, regex)
78
import Data.String.Regex.Flags (RegexFlags)
89

9-
import Partial.Unsafe (unsafePartial)
10+
import Partial.Unsafe (unsafeCrashWith)
1011

1112
-- | Constructs a `Regex` from a pattern string and flags. Fails with
1213
-- | an exception if the pattern contains a syntax error.
1314
unsafeRegex :: String -> RegexFlags -> Regex
14-
unsafeRegex s f = unsafePartial fromRight (regex s f)
15+
unsafeRegex s f = either unsafeCrashWith identity (regex s f)

0 commit comments

Comments
 (0)