Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. toSizedWithDefault' :: forall f (n :: Nat) a . (KnownNat n, CFreeMonoid f, Dom f a) => a -> f a -> Sized f n a

    sized Data.Sized

    toSizedWithDefault with the result length inferred. Since 0.7.0.0

  2. logErrorWithDefault :: Show a => (Priority -> String -> IO ()) -> b -> String -> Either a b -> IO b

    status-notifier-item StatusNotifier.Util

    No documentation available.

  3. findWithDefault :: Ord k => a -> k -> IntervalMap k a -> a

    IntervalMap Data.IntervalMap.Generic.Lazy

    O(log n). 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.

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

    IntervalMap Data.IntervalMap.Generic.Strict

    O(log n). 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. findWithDefault :: Ord k => a -> k -> IntervalMap k a -> a

    IntervalMap Data.IntervalMap.Lazy

    O(log n). 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.

  6. findWithDefault :: Ord k => a -> k -> IntervalMap k a -> a

    IntervalMap Data.IntervalMap.Strict

    O(log n). 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'
    

  7. findWithDefault :: IsMap map => MapValue map -> ContainerKey map -> map -> MapValue map

    classy-prelude-yesod ClassyPrelude.Yesod

    Like lookup, but uses a default value when the key does not exist in the map.

  8. findWithDefault :: Key k => v -> k -> Tree k v -> v

    haskey-btree Data.BTree.Pure

    Lookup a value in the tree, or return a default.

  9. findFileWithDefault :: FilePath -> FilePath -> IO FilePath

    nix-paths Nix.FindFile

    A convenience wrapper around findFile that returns the given default value in case the function returns nothing.

    findFileWithDefault def = fmap (fromMaybe def) . findFile
    

  10. promptYesNoWithDefault :: MonadIO m => Confirmation -> Bool -> Text -> m Bool

    prompt-hs System.Prompt

    Ask the user to enter yes or no. If they choose not to answer, use the default instead. The answer is given as a Bool - True for yes, False for no.

    promptYesNo DontConfirm False "Do you see light at the end of the road?"
    

Page 16 of many | Previous | Next