clash-lib-1.8.4: Clash: a functional hardware description language - As a library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Text.Prettyprint.Doc.Extra

Documentation

pretty :: (Applicative f, Pretty a) => a -> f Doc Source #

int :: Applicative f => Int -> f Doc Source #

fill :: Applicative f => Int -> f Doc -> f Doc Source #

parens :: Functor f => f Doc -> f Doc Source #

(<+>) :: Applicative f => f Doc -> f Doc -> f Doc infixr 6 Source #

type Doc = Doc () Source #

brackets :: Functor f => f Doc -> f Doc Source #

braces :: Functor f => f Doc -> f Doc Source #

hcat :: Functor f => f [Doc] -> f Doc Source #

hsep :: Functor f => f [Doc] -> f Doc Source #

vcat :: Functor f => f [Doc] -> f Doc Source #

nest :: Functor f => Int -> f Doc -> f Doc Source #

punctuate :: Applicative f => f Doc -> f [Doc] -> f [Doc] Source #

indent :: Functor f => Int -> f Doc -> f Doc Source #

flatAlt :: Applicative f => f Doc -> f Doc -> f Doc Source #

align :: Functor f => f Doc -> f Doc Source #

encloseSep :: Applicative f => f Doc -> f Doc -> f Doc -> f [Doc] -> f Doc Source #

tupled :: Functor f => f [Doc] -> f Doc Source #

vsep :: Functor f => f [Doc] -> f Doc Source #

column :: Functor f => f (Int -> Doc) -> f Doc Source #

nesting :: Functor f => f (Int -> Doc) -> f Doc Source #

enclose :: Applicative f => f Doc -> f Doc -> f Doc -> f Doc Source #

dquotes :: Functor f => f Doc -> f Doc Source #

renderOneLine :: Doc ann -> Text Source #

layoutOneLine :: Doc ann -> SimpleDocStream ann Source #

layoutCompact :: Doc ann1 -> SimpleDocStream ann2 #

layoutPretty :: LayoutOptions -> Doc ann -> SimpleDocStream ann #

renderLazy :: SimpleDocStream ann -> Text #

Orphan instances

Applicative f => IsString (f Doc) Source # 
Instance details

Methods

fromString :: String -> f Doc Source #