HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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