nixfmt-0.5.0: An opinionated formatter for Nix
Safe HaskellSafe-Inferred
LanguageHaskell2010

Nixfmt.Pretty

Synopsis

Documentation

prettyTerm :: Term -> Doc Source #

Pretty print a term without wrapping it in a group.

lastLineIsSpaces :: [[StringPart]] -> Bool Source #

If the last line has at least one space but nothing else, it cannot be cleanly represented in an indented string.

Orphan instances

Pretty Token Source # 
Instance details

Methods

pretty :: Token -> Doc Source #

Pretty File Source # 
Instance details

Methods

pretty :: File -> Doc Source #

Pretty Expression Source # 
Instance details

Pretty Parameter Source # 
Instance details

Methods

pretty :: Parameter -> Doc Source #

Pretty ParamAttr Source # 
Instance details

Methods

pretty :: ParamAttr -> Doc Source #

Pretty Term Source # 
Instance details

Methods

pretty :: Term -> Doc Source #

Pretty Binder Source # 
Instance details

Methods

pretty :: Binder -> Doc Source #

Pretty Selector Source # 
Instance details

Methods

pretty :: Selector -> Doc Source #

Pretty SimpleSelector Source # 
Instance details

Pretty StringPart Source # 
Instance details

Pretty TrailingComment Source # 
Instance details

Pretty Trivium Source # 
Instance details

Methods

pretty :: Trivium -> Doc Source #

Pretty [[StringPart]] Source # 
Instance details

Methods

pretty :: [[StringPart]] -> Doc Source #

Pretty [Token] Source # 
Instance details

Methods

pretty :: [Token] -> Doc Source #

Pretty [StringPart] Source # 
Instance details

Methods

pretty :: [StringPart] -> Doc Source #

Pretty [Trivium] Source # 
Instance details

Methods

pretty :: [Trivium] -> Doc Source #

Pretty a => Pretty (Ann a) Source # 
Instance details

Methods

pretty :: Ann a -> Doc Source #