Skip to content

Update to v0.14.0-rc3 #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,8 @@ node_js: stable
env:
- PATH=$HOME/purescript:$PATH
install:
- TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest))
# - TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest))
- TAG=v0.14.0-rc3
- curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
- chmod a+x $HOME/purescript
38 changes: 19 additions & 19 deletions bower.json
Original file line number Diff line number Diff line change
@@ -16,26 +16,26 @@
"package.json"
],
"dependencies": {
"purescript-arrays": "^5.0.0",
"purescript-control": "^4.0.0",
"purescript-either": "^4.0.0",
"purescript-enums": "^4.0.0",
"purescript-foldable-traversable": "^4.0.0",
"purescript-gen": "^2.0.0",
"purescript-integers": "^4.0.0",
"purescript-maybe": "^4.0.0",
"purescript-newtype": "^3.0.0",
"purescript-nonempty": "^5.0.0",
"purescript-partial": "^2.0.0",
"purescript-prelude": "^4.0.0",
"purescript-tailrec": "^4.0.0",
"purescript-tuples": "^5.0.0",
"purescript-unfoldable": "^4.0.0",
"purescript-unsafe-coerce": "^4.0.0"
"purescript-arrays": "master",
"purescript-control": "master",
"purescript-either": "master",
"purescript-enums": "master",
"purescript-foldable-traversable": "master",
"purescript-gen": "master",
"purescript-integers": "master",
"purescript-maybe": "master",
"purescript-newtype": "master",
"purescript-nonempty": "master",
"purescript-partial": "master",
"purescript-prelude": "master",
"purescript-tailrec": "master",
"purescript-tuples": "master",
"purescript-unfoldable": "master",
"purescript-unsafe-coerce": "master"
},
"devDependencies": {
"purescript-assert": "^4.0.0",
"purescript-console": "^4.0.0",
"purescript-minibench": "^2.0.0"
"purescript-assert": "master",
"purescript-console": "master",
"purescript-minibench": "master"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
"devDependencies": {
"eslint": "^4.19.1",
"pulp": "^15.0.0",
"purescript-psa": "^0.6.0",
"purescript-psa": "^0.8.0",
"rimraf": "^2.6.2"
}
}
7 changes: 4 additions & 3 deletions src/Data/String/Regex/Unsafe.purs
Original file line number Diff line number Diff line change
@@ -2,13 +2,14 @@ module Data.String.Regex.Unsafe
( unsafeRegex
) where

import Data.Either (fromRight)
import Control.Category (identity)
import Data.Either (either)
import Data.String.Regex (Regex, regex)
import Data.String.Regex.Flags (RegexFlags)

import Partial.Unsafe (unsafePartial)
import Partial.Unsafe (unsafeCrashWith)

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