Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #33 from garyb/halogen-0.8
Browse files Browse the repository at this point in the history
Update for Halogen 0.8, stricter build
  • Loading branch information
garyb committed May 13, 2016
2 parents 47b276b + af83eeb commit d376525
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ install:
- npm install -g bower
- bower install
script:
- npm run build
- npm test
- npm run example
after_success:
- >-
test $TRAVIS_TAG &&
node_modules/.bin/psc-publish > .pursuit.json &&
curl -X POST http://pursuit.purescript.org/packages \
-d @.pursuit.json \
-H 'Accept: application/json' \
-H "Authorization: token ${GITHUB_TOKEN}"
echo $GITHUB_TOKEN | pulp login &&
echo y | pulp publish --no-push
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"purescript-argonaut-traversals": "^0.7.0",
"purescript-const": "^0.5.0",
"purescript-datetime": "^0.9.0",
"purescript-halogen": "^0.7.0",
"purescript-halogen": "^0.8.0",
"purescript-void": "^0.3.0"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"private": true,
"scripts": {
"clean": "rimraf output && rimraf .pulp-cache",
"build": "pulp build",
"build": "pulp build --censor-lib --strict",
"test": "pulp test",
"example": "pulp browserify --include examples/src --to examples/jtable.js"
},
"devDependencies": {
"pulp": "^8.1.0",
"purescript": "^0.8.5",
"purescript-psa": "^0.3.8",
"rimraf": "^2.5.2"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Json/JSemantic.purs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ toSemantic o p = runJsonPrim p
where
applyParsers :: forall a. L.List (a -> Maybe JSemantic) -> a -> JSemantic
applyParsers lst a =
fromMaybe NA $ runFirst $ fold (First <$> (($ a) <$> lst))
fromMaybe NA $ runFirst $ fold (First <$> ((_ $ a) <$> lst))

toSemanticDef :: JsonPrim -> JSemantic
toSemanticDef = toSemantic defaultParsers

0 comments on commit d376525

Please sign in to comment.