Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
optionalFieldWithDefaultWith' :: Text -> JSONCodec output -> output -> ObjectCodec output outputautodocodec Autodocodec Like optionalFieldWithDefaultWith, but without documentation.
-
autodocodec Autodocodec.Class Like optionalFieldOrNull, but also interpret null as the default value.
-
autodocodec Autodocodec.Class Like optionalFieldOrNullWithDefault, but without documentation
optionalFieldWithDefault :: HasCodec output => Text -> output -> Text -> ObjectCodec output outputautodocodec Autodocodec.Class An optional field with a default value During decoding, the field may be in the object. The default value will be parsed otherwise. During encoding, the field will be in the object. The default value is ignored. The shown version of the default value will appear in the documentation.
optionalFieldWithDefault' :: HasCodec output => Text -> output -> ObjectCodec output outputautodocodec Autodocodec.Class Like optionalFieldWithDefault, but without documentation
-
autodocodec Autodocodec.Codec No documentation available.
-
autodocodec Autodocodec.Codec Like optionalFieldWithDefaultWith, but also interpret null as the default value.
-
autodocodec Autodocodec.Codec Like optionalFieldOrNullWithDefaultWith, but without documentation.
-
autodocodec Autodocodec.Codec An optional field with default value During decoding, the field may be in the object. The default value will be parsed otherwise. During encoding, the field will always be in the object. The default value is ignored. The shown version of the default value will appear in the documentation.
optionalFieldWithDefaultWith' :: Text -> JSONCodec output -> output -> ObjectCodec output outputautodocodec Autodocodec.Codec Like optionalFieldWithDefaultWith, but without documentation.