nixfmt-0.6.0: An opinionated formatter for Nix
Safe HaskellSafe-Inferred
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

Instances details
Show Trivium Source # 
Instance details

Defined in Nixfmt.Types

Eq Trivium Source # 
Instance details

Defined in Nixfmt.Types

Methods

(==) :: Trivium -> Trivium -> Bool #

(/=) :: Trivium -> Trivium -> Bool #

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 #

newtype TrailingComment Source #

Constructors

TrailingComment Text 

Instances

Instances details
Show TrailingComment Source # 
Instance details

Defined in Nixfmt.Types

Eq TrailingComment Source # 
Instance details

Defined in Nixfmt.Types

Pretty TrailingComment Source # 
Instance details

Defined in Nixfmt.Pretty

data Ann a Source #

Constructors

Ann a (Maybe TrailingComment) Trivia 

Instances

Instances details
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 #

Eq a => Eq (Ann a) Source #

Equality of annotated syntax is defines as equality of their corresponding semantics, thus ignoring the annotations.

Instance details

Defined in Nixfmt.Types

Methods

(==) :: Ann a -> Ann a -> Bool #

(/=) :: Ann a -> Ann a -> Bool #

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

Defined in Nixfmt.Pretty

Methods

pretty :: Ann a -> Doc Source #

data StringPart Source #

Instances

Instances details
Show StringPart Source # 
Instance details

Defined in Nixfmt.Types

Eq 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

Instances details
Show Selector Source # 
Instance details

Defined in Nixfmt.Types

Eq 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

Instances details
Show Binder Source # 
Instance details

Defined in Nixfmt.Types

Eq Binder Source # 
Instance details

Defined in Nixfmt.Types

Methods

(==) :: Binder -> Binder -> Bool #

(/=) :: Binder -> Binder -> Bool #

Pretty Binder Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: Binder -> Doc Source #

data Term Source #

Instances

Instances details
Show Term Source # 
Instance details

Defined in Nixfmt.Types

Methods

showsPrec :: Int -> Term -> ShowS #

show :: Term -> String #

showList :: [Term] -> ShowS #

Eq Term Source # 
Instance details

Defined in Nixfmt.Types

Methods

(==) :: Term -> Term -> Bool #

(/=) :: Term -> Term -> Bool #

Pretty Term Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: Term -> Doc Source #

data ParamAttr Source #

Instances

Instances details
Show ParamAttr Source # 
Instance details

Defined in Nixfmt.Types

Eq ParamAttr Source # 
Instance details

Defined in Nixfmt.Types

Pretty ParamAttr Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: ParamAttr -> Doc Source #

data Parameter Source #

Instances

Instances details
Show Parameter Source # 
Instance details

Defined in Nixfmt.Types

Eq Parameter Source # 
Instance details

Defined in Nixfmt.Types

Pretty Parameter Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: Parameter -> Doc Source #

data File Source #

Constructors

File Leaf Expression 

Instances

Instances details
Show File Source # 
Instance details

Defined in Nixfmt.Types

Methods

showsPrec :: Int -> File -> ShowS #

show :: File -> String #

showList :: [File] -> ShowS #

Eq File Source # 
Instance details

Defined in Nixfmt.Types

Methods

(==) :: File -> File -> Bool #

(/=) :: File -> File -> Bool #

Pretty File Source # 
Instance details

Defined in Nixfmt.Pretty

Methods

pretty :: File -> Doc Source #

data Fixity Source #

Constructors

Prefix 
InfixL 
InfixN 
InfixR 
Postfix 

Instances

Instances details
Show Fixity Source # 
Instance details

Defined in Nixfmt.Types

Eq Fixity Source # 
Instance details

Defined in Nixfmt.Types

Methods

(==) :: Fixity -> Fixity -> Bool #

(/=) :: Fixity -> Fixity -> Bool #

data Operator Source #

Constructors

Op Fixity Token 
Apply 

Instances

Instances details
Show Operator Source # 
Instance details

Defined in Nixfmt.Types

Eq 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.