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.
showParen :: Bool -> ShowS -> ShowSfaktory Faktory.Prelude utility function that surrounds the inner show function with parentheses when the Bool parameter is True.
-
faktory Faktory.Prelude utility function converting a String to a show function that simply prepends the string unchanged.
-
faktory Faktory.Prelude equivalent to showsPrec with a precedence of 0.
showsPrec :: Show a => Int -> a -> ShowSfaktory Faktory.Prelude Convert a value to a readable String. showsPrec should satisfy the law
showsPrec d x r ++ s == showsPrec d x (r ++ s)
Derived instances of Read and Show satisfy the following: That is, readsPrec parses the string produced by showsPrec, and delivers the value that showsPrec started with.showMutantAs :: Args -> ShowMutantAsfitspec Test.FitSpec how to show mutants
showMutantAsTuple :: ShowMutable a => [String] -> a -> a -> Stringfitspec Test.FitSpec 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.showMutantBindings :: ShowMutable a => [String] -> a -> a -> Stringfitspec Test.FitSpec 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.showMutantDefinition :: ShowMutable a => [String] -> a -> a -> Stringfitspec Test.FitSpec 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
showMutantNested :: ShowMutable a => [String] -> a -> a -> Stringfitspec Test.FitSpec 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.
showEach :: Show a => String -> [a] -> Stringfitspec Test.FitSpec.PrettyPrint No documentation available.