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.

  1. optionalFieldWithDefaultWith :: Text -> JSONCodec output -> output -> Text -> ObjectCodec output output

    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.

  2. optionalFieldWithDefaultWith' :: Text -> JSONCodec output -> output -> ObjectCodec output output

    autodocodec Autodocodec.Codec

    Like optionalFieldWithDefaultWith, but without documentation.

  3. optionalKeyWithDefaultCodec :: Text -> ValueCodec value value -> value -> Maybe Text -> ObjectCodec value value

    autodocodec Autodocodec.Codec

    No documentation available.

  4. findWithDefault :: Ord k => a -> k -> Map k a -> a

    rio 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'
    

  5. themedIconNewWithDefaultFallbacks :: (HasCallStack, MonadIO m) => Text -> m ThemedIcon

    gi-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");
    

  6. lookupWithDefault :: ByteString -> CI ByteString -> Headers -> ByteString

    snap-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"
    

  7. unbindMapWithDefault :: (Functor f, Num a) => b -> (a -> b -> c) -> f (Kahn a) -> IntMap b -> f c

    ad Numeric.AD.Internal.Kahn

    No documentation available.

  8. unbindMapWithDefault :: Functor f => b -> (Double -> b -> c) -> f KahnDouble -> IntMap b -> f c

    ad Numeric.AD.Internal.Kahn.Double

    No documentation available.

  9. unbindMapWithDefault :: Functor f => b -> (Float -> b -> c) -> f KahnFloat -> IntMap b -> f c

    ad Numeric.AD.Internal.Kahn.Float

    No documentation available.

  10. unbindMapWithDefault :: (Functor f, Num a) => b -> (a -> b -> c) -> f (Reverse s a) -> IntMap b -> f c

    ad Numeric.AD.Internal.Reverse

    No documentation available.

Page 7 of many | Previous | Next