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.
layoutPageWidth :: LayoutOptions -> PageWidthprettyprinter Prettyprinter.Internal No documentation available.
pageWidth :: (PageWidth -> Doc ann) -> Doc annprettyprinter 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]
width :: Doc ann -> (Int -> Doc ann) -> Doc annprettyprinter Prettyprinter.Internal (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
WithPageWidth :: [(PageWidth, Diag ann)] -> Diag annprettyprinter Prettyprinter.Internal.Debug Doc: (PageWidth -> Diag ann)
WithPageWidth :: (PageWidth -> Doc ann) -> Doc annprettyprinter Prettyprinter.Internal.Type React on the document's width, see pageWidth
-
warp Network.Wai.Handler.Warp Error types for bad Request.
-
warp Network.Wai.Handler.Warp.Internal Data type to abstract file identifiers. On Unix, a file descriptor would be specified to make use of the file descriptor cache. Since: 3.1.0
FileId :: FilePath -> Maybe Fd -> FileIdwarp Network.Wai.Handler.Warp.Internal No documentation available.
fileIdFd :: FileId -> Maybe Fdwarp Network.Wai.Handler.Warp.Internal No documentation available.
fileIdPath :: FileId -> FilePathwarp Network.Wai.Handler.Warp.Internal No documentation available.