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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 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