File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 22 "private" : true ,
33 "scripts" : {
44 "clean" : " rimraf output && rimraf .pulp-cache" ,
5- "build" : " pulp build --censor-lib --strict" ,
5+ "build" : " pulp build -- -- censor-lib --strict" ,
66 "test" : " pulp test"
77 },
88 "devDependencies" : {
9- "pulp" : " ^9 .0.1 " ,
10- "purescript-psa" : " ^0.3.9 " ,
11- "purescript" : " ^0.10.1 " ,
9+ "pulp" : " ^10 .0.0 " ,
10+ "purescript-psa" : " ^0.4.0 " ,
11+ "purescript" : " ^0.10.7 " ,
1212 "rimraf" : " ^2.5.4"
1313 }
1414}
Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ instance decodeList :: DecodeJson a => DecodeJson (List a) where
133133instance decodeMap :: (Ord a , DecodeJson a , DecodeJson b ) => DecodeJson (M.Map a b ) where
134134 decodeJson = map (M .fromFoldable :: List (Tuple a b ) -> M.Map a b ) <<< decodeJson
135135
136+ instance decodeVoid :: DecodeJson Void where
137+ decodeJson _ = Left " Value cannot be Void"
138+
136139decodeJArray :: Json -> Either String JArray
137140decodeJArray = maybe (Left " Value is not an Array" ) Right <<< toArray
138141
Original file line number Diff line number Diff line change @@ -88,3 +88,6 @@ instance encodeStrMap :: EncodeJson a => EncodeJson (SM.StrMap a) where
8888
8989instance encodeMap :: (Ord a , EncodeJson a , EncodeJson b ) => EncodeJson (M.Map a b ) where
9090 encodeJson = encodeJson <<< M .toList
91+
92+ instance encodeVoid :: EncodeJson Void where
93+ encodeJson = absurd
You can’t perform that action at this time.
0 commit comments