Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

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

  1. 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]
    

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

    prettyprinter Prettyprinter.Internal

    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]
    

  3. pageBody :: PageContent url -> !HtmlUrl url

    yesod-core Yesod.Core.Types

    No documentation available.

  4. pageDescription :: PageContent url -> !Maybe Text

    yesod-core Yesod.Core.Types

    No documentation available.

  5. pageHead :: PageContent url -> !HtmlUrl url

    yesod-core Yesod.Core.Types

    No documentation available.

  6. pageTitle :: PageContent url -> !Html

    yesod-core Yesod.Core.Types

    No documentation available.

  7. pageBody :: PageContent url -> !HtmlUrl url

    yesod-core Yesod.Core.Widget

    No documentation available.

  8. pageDescription :: PageContent url -> !Maybe Text

    yesod-core Yesod.Core.Widget

    No documentation available.

  9. pageHead :: PageContent url -> !HtmlUrl url

    yesod-core Yesod.Core.Widget

    No documentation available.

  10. pageTitle :: PageContent url -> !Html

    yesod-core Yesod.Core.Widget

    No documentation available.

Page 5 of many | Previous | Next