@@ -206,8 +206,10 @@ combinatorsCheck = do
206206 where
207207 go :: FO.Object Json -> Boolean
208208 go object =
209- let keys = FO .keys object
210- in foldl (\ok key -> ok && isJust (FO .lookup key object)) true keys
209+ let
210+ keys = FO .keys object
211+ in
212+ foldl (\ok key -> ok && isJust (FO .lookup key object)) true keys
211213
212214eitherCheck :: Test
213215eitherCheck = do
@@ -287,7 +289,7 @@ manualRecordDecode = do
287289 testBazCases = do
288290 test " Missing 'baz' key should decode to FooNested" do
289291 case decodeJson fooNestedBarJson of
290- Right (FooNested { bar: Just [1 ], baz: false }) -> pure unit
292+ Right (FooNested { bar: Just [ 1 ], baz: false }) -> pure unit
291293 _ -> failure (" Failed to properly decode JSON string: " <> stringify fooNestedBarJson)
292294
293295 test " Null 'baz' key should fail to decode to FooNested" do
@@ -297,24 +299,24 @@ manualRecordDecode = do
297299
298300 test " Missing 'baz' key should decode to FooNested'" do
299301 case decodeJson fooNestedBarJson of
300- Right (FooNested' { bar: Just [1 ], baz: false }) -> pure unit
302+ Right (FooNested' { bar: Just [ 1 ], baz: false }) -> pure unit
301303 _ -> failure (" Failed to properly decode JSON string: " <> stringify fooNestedBarJson)
302304
303305 test " Null 'baz' key should decode to FooNested'" do
304306 case decodeJson fooNestedBarJsonNull of
305- Right (FooNested' { bar: Just [1 ], baz: false }) -> pure unit
307+ Right (FooNested' { bar: Just [ 1 ], baz: false }) -> pure unit
306308 _ -> failure (" Failed to properly decode JSON string: " <> stringify fooNestedBarJsonNull)
307309
308310 testFullCases :: Test
309311 testFullCases = do
310312 test " Json should decode to FooNested" do
311313 case decodeJson fooNestedFullJson of
312- Right (FooNested { bar: Just [1 ], baz: true }) -> pure unit
314+ Right (FooNested { bar: Just [ 1 ], baz: true }) -> pure unit
313315 _ -> failure (" Failed to properly decode JSON string: " <> stringify fooNestedFullJson)
314316
315317 test " Json should decode to FooNested'" do
316318 case decodeJson fooNestedFullJson of
317- Right (FooNested { bar: Just [1 ], baz: true }) -> pure unit
319+ Right (FooNested { bar: Just [ 1 ], baz: true }) -> pure unit
318320 _ -> failure (" Failed to properly decode JSON string: " <> stringify fooNestedFullJson)
319321
320322 test " Test that decoding custom record is pure unitful" do
@@ -338,17 +340,16 @@ nonEmptyCheck = do
338340 Left err ->
339341 false <?> printJsonDecodeError err
340342
341-
342343 test " Test EncodeJson/DecodeJson on NonEmptyString" do
343344 quickCheck \(x :: NonEmptyString ) ->
344345 case decodeJson (encodeJson x) of
345346 Right decoded ->
346347 decoded == x
347348 <?>
348- ( " x = "
349- <> NonEmptyString .toString x
350- <> " , decoded = "
351- <> NonEmptyString .toString decoded
349+ ( " x = "
350+ <> NonEmptyString .toString x
351+ <> " , decoded = "
352+ <> NonEmptyString .toString decoded
352353 )
353354 Left err ->
354355 false <?> printJsonDecodeError err
0 commit comments