Hoogle Search
Within LTS Haskell 24.10 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
findWithDefault :: Enum key => a -> key -> EnumMap key a -> aregex-tdfa Data.IntMap.EnumMap2 No documentation available.
findWithDefault :: IsMap map => MapValue map -> ContainerKey map -> map -> MapValue mapmono-traversable Data.Containers Like lookup, but uses a default value when the key does not exist in the map.
toPermutationWithDefault :: Alternative m => a -> m a -> Permutation m aparser-combinators Control.Applicative.Permutations "Lifts" a parser with a default value to a permutation parser. If no permutation containing the supplied parser can be parsed from the input, then the supplied default value is returned in lieu of a parse result.
toPermutationWithDefault :: Alternative m => a -> m a -> Permutation m aparser-combinators Control.Monad.Permutations "Lifts" a parser with a default value to a permutation parser. If no permutation containing the supplied parser can be parsed from the input, then the supplied default value is returned in lieu of a parse result.
-
autodocodec Autodocodec No documentation available.
-
autodocodec Autodocodec Like optionalFieldOrNull, but also interpret null as the default value.
-
autodocodec Autodocodec Like optionalFieldOrNullWithDefault, but without documentation
-
autodocodec Autodocodec Like optionalFieldWithDefaultWith, but also interpret null as the default value.
-
autodocodec Autodocodec Like optionalFieldOrNullWithDefaultWith, but without documentation.
optionalFieldWithDefault :: HasCodec output => Text -> output -> Text -> ObjectCodec output outputautodocodec Autodocodec 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.