Skip to content

Commit da9e845

Browse files
Update to v0.14.0-rc3 (#28)
* Update TAG to v0.14.0-rc3; dependencies to master; psa to v0.8.0 * Stop cheating: no longer rely upon unsafeStringify to show content
1 parent b99557c commit da9e845

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
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: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
"package.json"
1717
],
1818
"dependencies": {
19-
"purescript-bifunctors": "^4.0.0",
20-
"purescript-control": "^4.0.0",
21-
"purescript-either": "^4.0.0",
22-
"purescript-foldable-traversable": "^4.0.0",
23-
"purescript-prelude": "^4.0.0",
24-
"purescript-newtype": "^3.0.0"
19+
"purescript-bifunctors": "master",
20+
"purescript-control": "master",
21+
"purescript-either": "master",
22+
"purescript-foldable-traversable": "master",
23+
"purescript-prelude": "master",
24+
"purescript-newtype": "master"
2525
},
2626
"devDependencies": {
27-
"purescript-psci-support": "^4.0.0",
28-
"purescript-console": "^4.2.0",
29-
"purescript-generics-rep": "^6.1.0",
30-
"purescript-ordered-collections": "^1.6.0",
31-
"purescript-strings": "^4.0.0"
27+
"purescript-psci-support": "master",
28+
"purescript-console": "master",
29+
"purescript-generics-rep": "master",
30+
"purescript-ordered-collections": "master",
31+
"purescript-strings": "master"
3232
}
3333
}

examples/Semigroup.purs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import Data.Map as Map
1616
import Data.Newtype (class Newtype, over2)
1717
import Data.String (length, null, toLower, toUpper)
1818
import Data.Validation.Semigroup (V, invalid)
19-
import Global.Unsafe (unsafeStringify)
2019

2120
-- | `UnvalidatedFormData` represents the raw data we might receive from a form
2221
-- | before any validation has been performed.
@@ -46,6 +45,9 @@ type ValidatedFormData =
4645
, password :: Password
4746
}
4847

48+
toString :: ValidatedFormData -> String
49+
toString { username: (Username u)} = "{ username: '" <> u <> "', password: <not shown> }"
50+
4951
-- | `ValidationError` represents the potential errors we might encounter during
5052
-- | the validation process.
5153
data ValidationError
@@ -251,4 +253,4 @@ main = do
251253
-- > pure ("{\"username\":\"alice\",\"password\":\"FooBarBaz\"}")
252254

253255
where
254-
printValidation = logShow <<< (map unsafeStringify)
256+
printValidation = logShow <<< (map toString)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"devDependencies": {
99
"pulp": "^15.0.0",
10-
"purescript-psa": "^0.6.0",
10+
"purescript-psa": "^0.8.0",
1111
"rimraf": "^2.6.2"
1212
}
1313
}

0 commit comments

Comments
 (0)