Noogλe

search input

Function of the day

  • Create an "--{with-<feature>=<value>,without-<feature>}" string that can be passed to standard GNU Autoconf scripts.

    Inputs

    flag
    1. Function argument
    feature
    2. Function argument
    value
    3. Function argument

    Type

    withFeatureAs :: Bool -> String -> String -> String
    

    Examples

    lib.strings.withFeatureAs usage example

    withFeatureAs true "shared" "foo"
    => "--with-shared=foo"
    withFeatureAs false "shared" (throw "ignored")
    => "--without-shared"