Hoogle Search

Within LTS Haskell 24.20 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. showQuantity :: Int -> String -> String

    fitspec Test.FitSpec.PrettyPrint

    No documentation available.

  2. showTuple :: [String] -> String

    fitspec Test.FitSpec.PrettyPrint

    Show elements of a list as a tuple. If there are multiple lines in any of the strings, tuple is printed multiline.

    showTuple ["asdf\nqwer\n","zxvc\nasdf\n"] ==
    "( asdf\n\
    \  qwer\n\
    \, zxvc\n\
    \  asdf )\n"
    
    showTuple ["asdf","qwer"] == "(asdf,qwer)"
    

  3. showMutantAs :: Args -> ShowMutantAs

    fitspec Test.FitSpec.Report

    how to show mutants

  4. showMutantAsTuple :: ShowMutable a => [String] -> a -> a -> String

    fitspec Test.FitSpec.ShowMutable

    Show a Mutant as a tuple of lambdas.

    > putStrLn $ showMutantAsTuple ["p && q","not p"] ((&&),not) ((||),id)
    ( \p q -> case (p,q) of
    (False,False) -> True
    _ -> p && q
    , \p -> case p of
    False -> False
    True -> True
    _ -> not p )
    
    Can be easily copy pasted into an interactive session for manipulation. On GHCi, use :{ and :} to allow multi-line expressions and definitions.

  5. showMutantBindings :: ShowMutable a => [String] -> a -> a -> String

    fitspec Test.FitSpec.ShowMutable

    Show a Mutant as the list of bindings that differ from the original function(s).

    > putStrLn $ showMutantBindings ["p && q","not p"] ((&&),not) ((==),id)
    False && False = True
    not False = False
    not True  = True
    
    Can possibly be copied into the source of the original function for manipulation.

  6. showMutantDefinition :: ShowMutable a => [String] -> a -> a -> String

    fitspec Test.FitSpec.ShowMutable

    Show a Mutant as a new complete top-level definition, with a prime appended to the name of the mutant.

    > putStrLn $ showMutantDefinition ["p && q","not p"] ((&&),not) ((==),id)
    False &&- False = True
    p     &&- q     = p && q
    not' False = False
    not' True  = True
    not' p     = not p
    

  7. showMutantNested :: ShowMutable a => [String] -> a -> a -> String

    fitspec Test.FitSpec.ShowMutable

    Show a Mutant as a tuple of nested lambdas. Very similar to showMutantAsTuple, but the underlying data structure is not flatten: so the output is as close as possible to the underlying representation.

  8. showsPrec :: (Natural n, Show a) => Int -> T n a -> ShowS

    fixed-length Data.FixedLength

    No documentation available.

  9. showFieldName :: forall (names :: [Symbol]) . FieldName names -> Text

    forma Web.Forma

    Project textual representation of path to a field.

  10. showAngle :: Double -> String

    geodetics Geodetics.Geodetic

    Show an angle as degrees, minutes and seconds to two decimal places.

Page 145 of many | Previous | Next