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.
-
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.
-
autodocodec Autodocodec.Codec No documentation available.
findWithDefault :: Ord k => a -> k -> Map k a -> ario RIO.Map The expression (findWithDefault def k map) returns the value at key k or returns default value def when the key is not in the map.
findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x' findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
themedIconNewWithDefaultFallbacks :: (HasCallStack, MonadIO m) => Text -> m ThemedIcongi-gio GI.Gio.Objects.ThemedIcon Creates a new themed icon for iconname, and all the names that can be created by shortening iconname at '-' characters. In the following example, icon1 and icon2 are equivalent:
C code
const char *names[] = { "gnome-dev-cdrom-audio", "gnome-dev-cdrom", "gnome-dev", "gnome" }; icon1 = g_themed_icon_new_from_names (names, 4); icon2 = g_themed_icon_new_with_default_fallbacks ("gnome-dev-cdrom-audio");
lookupWithDefault :: ByteString -> CI ByteString -> Headers -> ByteStringsnap-core Snap.Types.Headers Look up the value of a given HTTP header field or return the provided default value when that header field is not present. Example:
ghci> :set -XOverloadedStrings ghci> let hdrs = H.fromList [("Host", "localhost")] ghci> H.lookupWithDefault "host" "127.0.0.1" $ hdrs "localhost" ghci> H.lookupWithDefault "Accept" "text/plain" $ hdrs "text/plain"
unbindMapWithDefault :: (Functor f, Num a) => b -> (a -> b -> c) -> f (Kahn a) -> IntMap b -> f cad Numeric.AD.Internal.Kahn No documentation available.
unbindMapWithDefault :: Functor f => b -> (Double -> b -> c) -> f KahnDouble -> IntMap b -> f cad Numeric.AD.Internal.Kahn.Double No documentation available.
unbindMapWithDefault :: Functor f => b -> (Float -> b -> c) -> f KahnFloat -> IntMap b -> f cad Numeric.AD.Internal.Kahn.Float No documentation available.
-
ad Numeric.AD.Internal.Reverse No documentation available.