Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
confidenceFailure :: TestCount -> Confidence -> Coverage CoverCount -> Boolhedgehog Hedgehog.Internal.Property Is true when there exists a label that is sure to have failed according to the Confidence constraint
confidenceSuccess :: TestCount -> Confidence -> Coverage CoverCount -> Boolhedgehog Hedgehog.Internal.Property Is true when the test coverage satisfies the specified Confidence contstraint for all 'Coverage CoverCount's
defaultConfidence :: Confidencehedgehog Hedgehog.Internal.Property The default confidence allows one false positive in 10^9 tests
unConfidence :: Confidence -> Int64hedgehog Hedgehog.Internal.Property No documentation available.
withConfidence :: Confidence -> Property -> Propertyhedgehog Hedgehog.Internal.Property Make sure that the result is statistically significant in accordance to the passed Confidence
-
hedgehog Hedgehog.Internal.State Drops invalid actions from the sequence.
-
prettyprinter Prettyprinter Maximum number of characters that fit in one line. The layout algorithms will try not to exceed the set limit by inserting line breaks when applicable (e.g. via softline').
layoutPageWidth :: LayoutOptions -> PageWidthprettyprinter Prettyprinter No documentation available.
pageWidth :: (PageWidth -> Doc ann) -> Doc annprettyprinter Prettyprinter Layout a document depending on the page width, if one has been specified.
>>> let prettyPageWidth (AvailablePerLine l r) = "Width:" <+> pretty l <> ", ribbon fraction:" <+> pretty r >>> let doc = "prefix" <+> pageWidth (brackets . prettyPageWidth) >>> putDocW 32 (vsep [indent n doc | n <- [0,4,8]]) prefix [Width: 32, ribbon fraction: 1.0] prefix [Width: 32, ribbon fraction: 1.0] prefix [Width: 32, ribbon fraction: 1.0]
width :: Doc ann -> (Int -> Doc ann) -> Doc annprettyprinter Prettyprinter (width doc f) lays out the document doc, and makes the column width of it available to a function.
>>> let annotate doc = width (brackets doc) (\w -> " <- width:" <+> pretty w) >>> align (vsep (map annotate ["---", "------", indent 3 "---", vsep ["---", indent 4 "---"]])) [---] <- width: 5 [------] <- width: 8 [ ---] <- width: 8 [--- ---] <- width: 8