Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from garyb/0.10-updates
Browse files Browse the repository at this point in the history
Updates for PureScript 0.10
  • Loading branch information
garyb committed Nov 8, 2016
2 parents 9e05f5f + 25a4a8c commit 9c70687
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js
dist: trusty
sudo: required
node_js: 6
node_js: stable
install:
- npm install -g bower
- npm install
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# purescript-ejson

[![Latest release](http://img.shields.io/bower/v/purescript-ejson.svg)](https://github.com/slamdata/purescript-ejson/releases)
[![Build Status](https://travis-ci.org/slamdata/purescript-ejson.svg?branch=master)](https://travis-ci.org/slamdata/purescript-ejson)
[![Dependency Status](https://www.versioneye.com/user/projects/578d451f3e6a8b00457f8efe/badge.svg?style=flat)](https://www.versioneye.com/user/projects/578d451f3e6a8b00457f8efe)
[![Latest release](http://img.shields.io/github/release/slamdata/purescript-ejson.svg)](https://github.com/slamdata/purescript-ejson/releases)
[![Build status](https://travis-ci.org/slamdata/purescript-ejson.svg?branch=master)](https://travis-ci.org/slamdata/purescript-ejson)

EJSON data representation, as used by [Quasar](https://github.com/quasar-analytics/quasar).

Expand Down
16 changes: 8 additions & 8 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"package.json"
],
"dependencies": {
"purescript-argonaut-codecs": "^1.0.0",
"purescript-argonaut-core": "^1.0.0",
"purescript-bifunctors": "^1.0.0",
"purescript-fixed-points": "^1.0.0",
"purescript-hugenums": "^2.0.0",
"purescript-maps": "^1.0.0",
"purescript-parsing": "^1.0.0",
"purescript-strongcheck": "^1.0.0"
"purescript-argonaut-codecs": "^2.0.0",
"purescript-argonaut-core": "^2.0.1",
"purescript-bifunctors": "^2.0.0",
"purescript-fixed-points": "^2.0.0",
"purescript-maps": "^2.0.0",
"purescript-parsing": "^3.0.0",
"purescript-precise": "^1.0.0",
"purescript-strongcheck": "^2.0.0"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
},
"devDependencies": {
"pulp": "^9.0.1",
"purescript": "^0.9.1",
"purescript": "^0.10.1",
"purescript-psa": "^0.3.9",
"rimraf": "^2.5.0"
"rimraf": "^2.5.4"
}
}
8 changes: 3 additions & 5 deletions src/Data/Json/Extended/Signature/Render.purs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import Data.Either (fromRight)
import Data.Foldable as F
import Data.HugeNum as HN
import Data.Json.Extended.Signature.Core (EJsonF(..))
import Data.String.Regex as Rx
import Data.String.Regex as RX
import Data.String.Regex.Flags as RXF
import Data.Tuple as T
import Partial.Unsafe (unsafePartial)

Expand Down Expand Up @@ -45,10 +46,7 @@ renderEJsonF rec d =
String
String
replaceAll i =
Rx.replace $
unsafePartial fromRight $
Rx.regex i $
Rx.noFlags { global = true }
RX.replace $ unsafePartial fromRight $ RX.regex i RXF.global

-- | Surround text in double quotes, escaping internal double quotes.
stringEJson
Expand Down

0 comments on commit 9c70687

Please sign in to comment.