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.

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

    autodocodec Autodocodec.Codec

    No documentation available.

  2. toPermutationWithDefault :: Alternative m => a -> m a -> Permutation m a

    parser-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.

  3. toPermutationWithDefault :: Alternative m => a -> m a -> Permutation m a

    parser-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.

  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