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.
-
postgresql-simple Database.PostgreSQL.Simple.Newtypes No documentation available.
codecViaAeson :: (FromJSON a, ToJSON a) => Text -> JSONCodec aautodocodec Autodocodec Produce a codec using a type's FromJSON and ToJSON instances. You will only want to use this if you cannot figure out how to produce a JSONCodec for your type. Note that this will not have good documentation because, at a codec level, it's just parsing and rendering a Value.
Example usage
>>> toJSONVia (codecViaAeson "Int") (5 :: Int) Number 5.0 >>> JSON.parseMaybe (parseJSONVia (codecViaAeson "Int")) (Number 5) :: Maybe Int Just 5
codecViaAeson :: (FromJSON a, ToJSON a) => Text -> JSONCodec aautodocodec Autodocodec.Codec Produce a codec using a type's FromJSON and ToJSON instances. You will only want to use this if you cannot figure out how to produce a JSONCodec for your type. Note that this will not have good documentation because, at a codec level, it's just parsing and rendering a Value.
Example usage
>>> toJSONVia (codecViaAeson "Int") (5 :: Int) Number 5.0 >>> JSON.parseMaybe (parseJSONVia (codecViaAeson "Int")) (Number 5) :: Maybe Int Just 5
unsafeCodecViaAesonString :: (FromJSON a, ToJSON a) => Text -> JSONCodec aautodocodec Autodocodec.Codec No documentation available.
-
Law-abiding lenses for aeson Law-abiding lenses for aeson.
class (Generic a, All2 AesonDefaultValue Code a) =>
HasSwaggerAesonOptions aopenapi3 Data.OpenApi.Internal.AesonUtils No documentation available.
-
openapi3 Data.OpenApi.Internal.AesonUtils No documentation available.
mkSwaggerAesonOptions :: String -> SwaggerAesonOptionsopenapi3 Data.OpenApi.Internal.AesonUtils No documentation available.
swaggerAesonOptions :: HasSwaggerAesonOptions a => Proxy a -> SwaggerAesonOptionsopenapi3 Data.OpenApi.Internal.AesonUtils No documentation available.
fromAesonOptions :: Options -> SchemaOptionsopenapi3 Data.OpenApi.Schema Convert Options to SchemaOptions. Specifically the following fields get copied:
Note that these fields have no effect on SchemaOptions: The rest is defined as in defaultSchemaOptions.