Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromAesonParser :: forall (m :: Type -> Type) a e . (Functor m, Monad m, FromJSON a) => ParseT e m aaeson-better-errors Data.Aeson.BetterErrors Create a parser for any type, using its FromJSON instance. Generally, you should prefer to write parsers using the other functions in this module; key, asString, etc, since they will usually generate better error messages. However this function is also useful occasionally.
toAesonParser :: (err -> Text) -> Parse err a -> Value -> Parser aaeson-better-errors Data.Aeson.BetterErrors This function is useful when you have a Parse err a and you want to obtain an instance for FromJSON a. Simply define:
parseJSON = toAesonParser showMyCustomError myParser
toAesonParser' :: Parse' a -> Value -> Parser aaeson-better-errors Data.Aeson.BetterErrors Take a parser which never produces custom validation errors and turn it into an Aeson parser. Note that in this case, there is no need to provide a display function.
FromAeson :: String -> ErrorSpecifics erraeson-better-errors Data.Aeson.BetterErrors.Internal An error arising inside a FromJSON instance.
fromAesonParser :: forall (m :: Type -> Type) a e . (Functor m, Monad m, FromJSON a) => ParseT e m aaeson-better-errors Data.Aeson.BetterErrors.Internal Create a parser for any type, using its FromJSON instance. Generally, you should prefer to write parsers using the other functions in this module; key, asString, etc, since they will usually generate better error messages. However this function is also useful occasionally.
toAesonParser :: (err -> Text) -> Parse err a -> Value -> Parser aaeson-better-errors Data.Aeson.BetterErrors.Internal This function is useful when you have a Parse err a and you want to obtain an instance for FromJSON a. Simply define:
parseJSON = toAesonParser showMyCustomError myParser
toAesonParser' :: Parse' a -> Value -> Parser aaeson-better-errors Data.Aeson.BetterErrors.Internal Take a parser which never produces custom validation errors and turn it into an Aeson parser. Note that in this case, there is no need to provide a display function.
-
Short description Please see the README on GitHub at https://github.com/lehins/conduit-aeson#readme
-
Integration of domain with aeson Integration of domain with aeson
-
No documentation available.