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. compileFileWithDefault :: DefaultScope -> HeterocephalusSetting -> FilePath -> Q Exp

    heterocephalus Text.Heterocephalus

    Same as compileFile but we can specify default scope.

  2. compileFromStringWithDefault :: DefaultScope -> HeterocephalusSetting -> String -> Q Exp

    heterocephalus Text.Heterocephalus

    No documentation available.

  3. compileHtmlFileWithDefault :: FilePath -> DefaultScope -> Q Exp

    heterocephalus 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: &lt;a&gt;,
    key: b,
    
    >>> :{
    putStr $ renderMarkup (
    $(compileHtmlFileWithDefault "templates/sample.txt"
    [("as", [| ["foo", "bar"] |])]
    )
    )
    :}
    sample
    key: foo,
    key: bar,
    

  4. compileTextFileWithDefault :: FilePath -> DefaultScope -> Q Exp

    heterocephalus 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,
    

  5. compileWithDefault :: DefaultScope -> HeterocephalusSetting -> QuasiQuoter

    heterocephalus Text.Heterocephalus

    QuasiQuoter.

  6. sqlSetListWithDefaults :: (MonadState SqlInsert m, Show a, ToSQL a) => SQL -> [Maybe a] -> m ()

    hpqtypes-extras Database.PostgreSQL.PQTypes.SQL.Builder

    No documentation available.

  7. xpWithDefault :: a -> PU t a -> PU t a

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

  8. bareNameWithDefault :: (LensNamed a, NameOf a ~ NamedName) => ArgName -> a -> ArgName

    Agda Agda.Syntax.Common

    No documentation available.

  9. headWithDefault :: a -> [a] -> a

    Agda Agda.Utils.List

    Head function (safe). Returns a default value on empty lists. O(1).

    headWithDefault 42 []      = 42
    headWithDefault 42 [1,2,3] = 1
    

  10. indexWithDefault :: a -> [a] -> Int -> a

    Agda Agda.Utils.List

    Lookup function with default value for index out of range. O(min n index). The name is chosen akin to genericIndex.

Page 12 of many | Previous | Next