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.
compileFileWithDefault :: DefaultScope -> HeterocephalusSetting -> FilePath -> Q Expheterocephalus Text.Heterocephalus Same as compileFile but we can specify default scope.
compileFromStringWithDefault :: DefaultScope -> HeterocephalusSetting -> String -> Q Expheterocephalus Text.Heterocephalus No documentation available.
compileHtmlFileWithDefault :: FilePath -> DefaultScope -> Q Expheterocephalus Text.Heterocephalus Same as compileHtmlFile but allows the user to specify default values for template parameters.
>>> :set -XOverloadedStrings :{ putStr $ renderMarkup ( let as = ["<a>", "b"] in $(compileHtmlFileWithDefault "templates/sample.txt" [("as", [| ["foo", "bar"] |])] ) ) :} sample key: <a>, key: b,
>>> :{ putStr $ renderMarkup ( $(compileHtmlFileWithDefault "templates/sample.txt" [("as", [| ["foo", "bar"] |])] ) ) :} sample key: foo, key: bar,
compileTextFileWithDefault :: FilePath -> DefaultScope -> Q Expheterocephalus Text.Heterocephalus Same as compileText but allows the user to specify default values for template parameters.
>>> :set -XOverloadedStrings >>> :{ putStr $ renderMarkup ( let as = ["<a>", "b"] in $(compileTextFileWithDefault "templates/sample.txt" [("as", [| ["foo", "bar"] |])] ) ) :} sample key: <a>, key: b,
>>> :{ putStr $ renderMarkup ( $(compileTextFileWithDefault "templates/sample.txt" [("as", [| ["foo", "bar"] |])] ) ) :} sample key: foo, key: bar,
compileWithDefault :: DefaultScope -> HeterocephalusSetting -> QuasiQuoterheterocephalus Text.Heterocephalus QuasiQuoter.
sqlSetListWithDefaults :: (MonadState SqlInsert m, Show a, ToSQL a) => SQL -> [Maybe a] -> m ()hpqtypes-extras Database.PostgreSQL.PQTypes.SQL.Builder No documentation available.
xpWithDefault :: a -> PU t a -> PU t axml-picklers Data.XML.Pickle Attempt to use a pickler. Return a default value when the pickler doesn't return anything (doesn't touch on UnpickleError). Unlike xpDefault, the default value is encoded in the XML document.
bareNameWithDefault :: (LensNamed a, NameOf a ~ NamedName) => ArgName -> a -> ArgNameAgda Agda.Syntax.Common No documentation available.
headWithDefault :: a -> [a] -> aAgda Agda.Utils.List Head function (safe). Returns a default value on empty lists. O(1).
headWithDefault 42 [] = 42 headWithDefault 42 [1,2,3] = 1
indexWithDefault :: a -> [a] -> Int -> aAgda Agda.Utils.List Lookup function with default value for index out of range. O(min n index). The name is chosen akin to genericIndex.