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.
-
sized Data.Sized toSizedWithDefault with the result length inferred. Since 0.7.0.0
logErrorWithDefault :: Show a => (Priority -> String -> IO ()) -> b -> String -> Either a b -> IO bstatus-notifier-item StatusNotifier.Util No documentation available.
findWithDefault :: Ord k => a -> k -> IntervalMap k a -> aIntervalMap 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.
findWithDefault :: Ord k => a -> k -> IntervalMap k a -> aIntervalMap 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'
findWithDefault :: Ord k => a -> k -> IntervalMap k a -> aIntervalMap 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.
findWithDefault :: Ord k => a -> k -> IntervalMap k a -> aIntervalMap 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'
findWithDefault :: IsMap map => MapValue map -> ContainerKey map -> map -> MapValue mapclassy-prelude-yesod ClassyPrelude.Yesod Like lookup, but uses a default value when the key does not exist in the map.
findWithDefault :: Key k => v -> k -> Tree k v -> vhaskey-btree Data.BTree.Pure Lookup a value in the tree, or return a default.
findFileWithDefault :: FilePath -> FilePath -> IO FilePathnix-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
promptYesNoWithDefault :: MonadIO m => Confirmation -> Bool -> Text -> m Boolprompt-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?"