| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Text.Prettyprint.Doc.Extra
Contents
Documentation
pretty :: (Applicative f, Pretty a) => a -> f Doc Source #
comma :: Applicative f => f Doc Source #
colon :: Applicative f => f Doc Source #
space :: Applicative f => f Doc Source #
semi :: Applicative f => f Doc Source #
equals :: Applicative f => f Doc Source #
lparen :: Applicative f => f Doc Source #
rparen :: Applicative f => f Doc Source #
lbrace :: Applicative f => f Doc Source #
rbrace :: Applicative f => f Doc Source #
line :: Applicative f => f Doc Source #
dot :: Applicative f => f Doc Source #
emptyDoc :: Applicative f => f Doc Source #
line' :: Applicative f => f Doc Source #
softline :: Applicative f => f Doc Source #
softline' :: Applicative f => f Doc Source #
encloseSep :: Applicative f => f Doc -> f Doc -> f Doc -> f [Doc] -> f Doc Source #
squote :: Applicative f => f Doc Source #
renderOneLine :: Doc ann -> Text Source #
layoutOneLine :: Doc ann -> SimpleDocStream ann Source #
newtype LayoutOptions #
Constructors
| LayoutOptions | |
Fields | |
Instances
| Show LayoutOptions | |
Defined in Prettyprinter.Internal | |
| Eq LayoutOptions | |
Defined in Prettyprinter.Internal Methods (==) :: LayoutOptions -> LayoutOptions -> Bool Source # (/=) :: LayoutOptions -> LayoutOptions -> Bool Source # | |
| Ord LayoutOptions | |
Defined in Prettyprinter.Internal Methods compare :: LayoutOptions -> LayoutOptions -> Ordering Source # (<) :: LayoutOptions -> LayoutOptions -> Bool Source # (<=) :: LayoutOptions -> LayoutOptions -> Bool Source # (>) :: LayoutOptions -> LayoutOptions -> Bool Source # (>=) :: LayoutOptions -> LayoutOptions -> Bool Source # max :: LayoutOptions -> LayoutOptions -> LayoutOptions Source # min :: LayoutOptions -> LayoutOptions -> LayoutOptions Source # | |
Constructors
| AvailablePerLine !Int !Double | |
| Unbounded |
Instances
| Show PageWidth | |
| Eq PageWidth | |
| Ord PageWidth | |
Defined in Prettyprinter.Internal | |
layoutCompact :: Doc ann1 -> SimpleDocStream ann2 #
layoutPretty :: LayoutOptions -> Doc ann -> SimpleDocStream ann #
renderLazy :: SimpleDocStream ann -> Text #
Orphan instances
| Applicative f => IsString (f Doc) Source # | |
Methods fromString :: String -> f Doc Source # | |