Modify a parser to fail on invalid results.
Modulevalidity-aeson-0.2.0.5Haskell2010
Data.Validity.Aeson
- 2 values
- Packagevalidity-aeson-0.2.0.5
- Exports2
- LanguageHaskell2010
- LicenceMIT
- SourceAeson.hs
Modify a parsing function to fail on invalid results.
Easy to use with the withX helper functions:
parseJSON = parseJSONValidWith . withObject "MyThing" $ \o ->
MyThing <$> ...