@@ -28,14 +28,15 @@ example =
2828 -- from the original data and the JSON Pointer.
2929 --
3030 -- If you want to display the invalid subset of the data here's how you
31− -- resolve the JSON Pointer ('D4._failureOffendingData') against the
32− -- original data.
31+ -- resolve the JSON Pointer (which has the field name
32+ -- 'D4._failureOffendingData') against the original data.
3333 --
3434 -- NOTE: You have to have hjsonpointer in your build-depends.
3535 case AP.resolve (D4._failureOffendingData failure) badData of
3636 Left _ -> error "Couldn't resolve pointer."
37− Right _ -> putStrLn "Success." -- We could feed the 'Right' value into
38− -- 'msg' if we wanted to display it.
37+ Right _ -> return () -- Success. We could feed the 'Right' value into
38+ -- the otherwise unused 'msg' if we wanted to
39+ -- display it.
3940
4041msg :: Value -> String
4142msg subsetOfData = unlines