HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulevalidity-aeson-0.2.0.5Haskell2010

Data.Validity.Aeson

Synopsis
valueparseJSONValidWith :: Validity a => (value -> Parser a) -> value -> Parser a

Modify a parsing function to fail on invalid results.

Easy to use with the withX helper functions:

parseJSON = parseJSONValidWith . withObject "MyThing" $ \o ->
  MyThing <$> ...

Orphan instances

3 instances