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 2
2
"private" : true ,
3
3
"scripts" : {
4
4
"clean" : " rimraf output && rimraf .pulp-cache" ,
5
- "build" : " pulp build --censor-lib --strict" ,
5
+ "build" : " pulp build -- -- censor-lib --strict" ,
6
6
"test" : " pulp test"
7
7
},
8
8
"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 " ,
12
12
"rimraf" : " ^2.5.4"
13
13
}
14
14
}
Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ instance decodeList :: DecodeJson a => DecodeJson (List a) where
133
133
instance decodeMap :: (Ord a , DecodeJson a , DecodeJson b ) => DecodeJson (M.Map a b ) where
134
134
decodeJson = map (M .fromFoldable :: List (Tuple a b ) -> M.Map a b ) <<< decodeJson
135
135
136
+ instance decodeVoid :: DecodeJson Void where
137
+ decodeJson _ = Left " Value cannot be Void"
138
+
136
139
decodeJArray :: Json -> Either String JArray
137
140
decodeJArray = maybe (Left " Value is not an Array" ) Right <<< toArray
138
141
Original file line number Diff line number Diff line change @@ -88,3 +88,6 @@ instance encodeStrMap :: EncodeJson a => EncodeJson (SM.StrMap a) where
88
88
89
89
instance encodeMap :: (Ord a , EncodeJson a , EncodeJson b ) => EncodeJson (M.Map a b ) where
90
90
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