Hoogle Search

Within LTS Haskell 24.63 (ghc-9.10.3)

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

  1. unConfidence :: Confidence -> Int64

    hedgehog Hedgehog.Internal.Property

    No documentation available.

  2. withConfidence :: Confidence -> Property -> Property

    hedgehog Hedgehog.Internal.Property

    Make sure that the result is statistically significant in accordance to the passed Confidence

  3. dropInvalid :: forall (m :: Type -> Type) (state :: (Type -> Type) -> Type) . [Action m state] -> State (Context state) [Action m state]

    hedgehog Hedgehog.Internal.State

    Drops invalid actions from the sequence.

  4. data PageWidth

    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').

  5. layoutPageWidth :: LayoutOptions -> PageWidth

    prettyprinter Prettyprinter

    No documentation available.

  6. pageWidth :: (PageWidth -> Doc ann) -> Doc ann

    prettyprinter 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]
    

  7. width :: Doc ann -> (Int -> Doc ann) -> Doc ann

    prettyprinter 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
    

  8. data PageWidth

    prettyprinter Prettyprinter.Internal

    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').

  9. WithPageWidth :: (PageWidth -> Doc ann) -> Doc ann

    prettyprinter Prettyprinter.Internal

    React on the document's width, see pageWidth

  10. defaultPageWidth :: PageWidth

    prettyprinter Prettyprinter.Internal

    No documentation available.

Page 408 of many | Previous | Next