File tree Expand file tree Collapse file tree 4 files changed +9
-14
lines changed Expand file tree Collapse file tree 4 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,7 @@ language: node_js
22sudo : false
33node_js :
44 - 0.10
5- env :
6- - PATH=$HOME/purescript:$PATH
75install :
8- - TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
9- - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
10- - tar -xvf $HOME/purescript.tar.gz -C $HOME/
11- - chmod a+x $HOME/purescript
126 - npm install bower gulp -g
137 - npm install
148 - bower install --production
Original file line number Diff line number Diff line change 2323 "purescript-maps" : " ^0.5.0"
2424 },
2525 "devDependencies" : {
26- "purescript-strongcheck" : " ^0.12 .0"
26+ "purescript-strongcheck" : " ^0.14 .0"
2727 }
2828}
Original file line number Diff line number Diff line change 44 "license" : " MIT" ,
55 "devDependencies" : {
66 "gulp" : " ^3.9.0" ,
7- "gulp-purescript" : " ^0.5.0" ,
8- "gulp-run" : " ^1.6.8"
7+ "gulp-purescript" : " ^0.7.0" ,
8+ "gulp-run" : " ^1.6.8" ,
9+ "purescript" : " ^0.7.4"
910 }
1011}
Original file line number Diff line number Diff line change 1- module Data.Argonaut.Core
1+ module Data.Argonaut.Core
22 ( Json (..)
33 , JNull (..)
44 , JBoolean (..)
@@ -85,10 +85,10 @@ foldJsonObject :: forall a. a -> (JObject -> a) -> Json -> a
8585foldJsonObject d f j = runFn7 _foldJson (const d) (const d) (const d) (const d) (const d) f j
8686
8787verbJsonType :: forall a b . b -> (a -> b ) -> (b -> (a -> b ) -> Json -> b ) -> Json -> b
88- verbJsonType def f fold = fold def f
88+ verbJsonType def f fold = fold def f
8989
9090
91- -- Tests
91+ -- Tests
9292isJsonType :: forall a . (Boolean -> (a -> Boolean ) -> Json -> Boolean ) ->
9393 Json -> Boolean
9494isJsonType = verbJsonType false (const true )
@@ -113,7 +113,7 @@ isObject = isJsonType foldJsonObject
113113
114114-- Decoding
115115
116- toJsonType :: forall a b . (Maybe a -> (a -> Maybe a ) -> Json -> Maybe a ) ->
116+ toJsonType :: forall a . (Maybe a -> (a -> Maybe a ) -> Json -> Maybe a ) ->
117117 Json -> Maybe a
118118toJsonType = verbJsonType Nothing Just
119119
@@ -189,7 +189,7 @@ instance ordJson :: Ord Json where
189189 compare a b = runFn5 _compare EQ GT LT a b
190190
191191instance showJson :: Show Json where
192- show = _stringify
192+ show = _stringify
193193
194194-- Foreigns
195195
You can’t perform that action at this time.
0 commit comments