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
2
2
sudo : false
3
3
node_js :
4
4
- 0.10
5
- env :
6
- - PATH=$HOME/purescript:$PATH
7
5
install :
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
12
6
- npm install bower gulp -g
13
7
- npm install
14
8
- bower install --production
Original file line number Diff line number Diff line change 23
23
"purescript-maps" : " ^0.5.0"
24
24
},
25
25
"devDependencies" : {
26
- "purescript-strongcheck" : " ^0.12 .0"
26
+ "purescript-strongcheck" : " ^0.14 .0"
27
27
}
28
28
}
Original file line number Diff line number Diff line change 4
4
"license" : " MIT" ,
5
5
"devDependencies" : {
6
6
"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"
9
10
}
10
11
}
Original file line number Diff line number Diff line change 1
- module Data.Argonaut.Core
1
+ module Data.Argonaut.Core
2
2
( Json (..)
3
3
, JNull (..)
4
4
, JBoolean (..)
@@ -85,10 +85,10 @@ foldJsonObject :: forall a. a -> (JObject -> a) -> Json -> a
85
85
foldJsonObject d f j = runFn7 _foldJson (const d) (const d) (const d) (const d) (const d) f j
86
86
87
87
verbJsonType :: 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
89
89
90
90
91
- -- Tests
91
+ -- Tests
92
92
isJsonType :: forall a . (Boolean -> (a -> Boolean ) -> Json -> Boolean ) ->
93
93
Json -> Boolean
94
94
isJsonType = verbJsonType false (const true )
@@ -113,7 +113,7 @@ isObject = isJsonType foldJsonObject
113
113
114
114
-- Decoding
115
115
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 ) ->
117
117
Json -> Maybe a
118
118
toJsonType = verbJsonType Nothing Just
119
119
@@ -189,7 +189,7 @@ instance ordJson :: Ord Json where
189
189
compare a b = runFn5 _compare EQ GT LT a b
190
190
191
191
instance showJson :: Show Json where
192
- show = _stringify
192
+ show = _stringify
193
193
194
194
-- Foreigns
195
195
You can’t perform that action at this time.
0 commit comments