Hoogle Search
Within LTS Haskell 22.19 (ghc-9.6.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
withDefaultEnvConfig :: RIO EnvConfig a -> RIO Config astack Stack.Runners Helper for withEnvConfig which passes in some default arguments:
- No targets are requested
- Default command line build options are assumed
withDefaults :: (Monoid s, Ord s) => Defaults s () -> Q [Dec] -> Q [Dec]flexible-defaults Language.Haskell.TH.FlexibleDefaults Given a Q [Dec] containing an instance declaration, complete that instance declaration using the given Defaults specification. Typical usage would be along the lines of the following:
$(withDefaults fooDefaults [d| instance Foo t where {- ... -} |])
newtype
WithDefaultPartials m apandoc Text.Pandoc.Templates Wrap a Monad in this if you want partials to be taken only from the default data files.
WithDefaultPartials :: m a -> WithDefaultPartials m apandoc Text.Pandoc.Templates No documentation available.
data
WithDefault' a (b :: Bool)Agda Agda.Utils.WithDefault We don't want to have to remember for each flag whether its default value is True or False. So we bake it into the representation: the flag's type will mention its default value as a phantom parameter.
-
svg-tree Graphics.Svg.Types Define an empty 'default' element for the SVG tree. It is used as base when parsing the element from XML.
openBinaryTempFileWithDefaultPermissions :: FilePath -> String -> IO (FilePath, Handle)base System.IO Like openBinaryTempFile, but uses the default file permissions
openTempFileWithDefaultPermissions :: FilePath -> String -> IO (FilePath, Handle)base System.IO Like openTempFile, but uses the default file permissions
findWithDefault :: a -> Key -> IntMap a -> acontainers Data.IntMap.Internal The expression (findWithDefault def k map) returns the value at key k or returns def when the key is not an element of the map.
findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x' findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'
findWithDefault :: a -> Key -> IntMap a -> acontainers Data.IntMap.Lazy The expression (findWithDefault def k map) returns the value at key k or returns def when the key is not an element of the map.
findWithDefault 'x' 1 (fromList [(5,'a'), (3,'b')]) == 'x' findWithDefault 'x' 5 (fromList [(5,'a'), (3,'b')]) == 'a'