nixfmt-0.4.0: An opinionated formatter for Nix

Safe HaskellNone
LanguageHaskell2010

Nixfmt.Types

Synopsis

Documentation

type Parser = Parsec Void Text Source #

A megaparsec ParsecT specified for use with nixfmt.

type ParseErrorBundle = ParseErrorBundle Text Void Source #

A megaparsec ParseErrorBundle specified for use with nixfmt.

data Trivium Source #

Instances
Show Trivium Source # 
Instance details

Defined in Nixfmt.Types

Pretty Trivium Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: Trivium -> Doc Source #

Pretty [Trivium] Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: [Trivium] -> Doc Source #

data Ann a Source #

Constructors

Ann a (Maybe TrailingComment) Trivia 
Instances
Show a => Show (Ann a) Source # 
Instance details

Defined in Nixfmt.Types

Methods

showsPrec :: Int -> Ann a -> ShowS #

show :: Ann a -> String #

showList :: [Ann a] -> ShowS #

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

Defined in Nixfmt.Pretty

Methods

pretty :: Ann a -> Doc Source #

data StringPart Source #

Instances
Show StringPart Source # 
Instance details

Defined in Nixfmt.Types

Pretty StringPart Source # 
Instance details

Defined in Nixfmt.Pretty

Pretty [[StringPart]] Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

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

Pretty [StringPart] Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: [StringPart] -> Doc Source #

data Selector Source #

Instances
Show Selector Source # 
Instance details

Defined in Nixfmt.Types

Pretty Selector Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: Selector -> Doc Source #

data Binder Source #

Instances
Show Binder Source # 
Instance details

Defined in Nixfmt.Types

Pretty Binder Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: Binder -> Doc Source #

data Term Source #

Instances
Show Term Source # 
Instance details

Defined in Nixfmt.Types

Methods

showsPrec :: Int -> Term -> ShowS #

show :: Term -> String #

showList :: [Term] -> ShowS #

Pretty Term Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: Term -> Doc Source #

data ParamAttr Source #

Instances
Show ParamAttr Source # 
Instance details

Defined in Nixfmt.Types

Pretty ParamAttr Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: ParamAttr -> Doc Source #

data File Source #

Constructors

File Leaf Expression 
Instances
Show File Source # 
Instance details

Defined in Nixfmt.Types

Methods

showsPrec :: Int -> File -> ShowS #

show :: File -> String #

showList :: [File] -> ShowS #

Pretty File Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: File -> Doc Source #

data Fixity Source #

Constructors

Prefix 
InfixL 
InfixN 
InfixR 
Postfix 
Instances
Show Fixity Source # 
Instance details

Defined in Nixfmt.Types

data Operator Source #

Constructors

Op Fixity Token 
Apply 
Instances
Show Operator Source # 
Instance details

Defined in Nixfmt.Types

operators :: [[Operator]] Source #

A list of lists of operators where lists that come first contain operators that bind more strongly.