HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulevalidity-aeson-0.2.0.5Haskell2010

Data.Validity.Aeson

  • 2 values
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