Agda-2.5.4: A dependently typed functional programming language and proof assistant

Safe HaskellNone
LanguageHaskell2010

Agda.Syntax.Concrete.Pretty

Contents

Description

Pretty printer for the concrete syntax.

Synopsis

Documentation

data SpecialCharacters #

Picking the appropriate set of special characters depending on whether we are allowed to use unicode or have to limit ourselves to ascii.

Constructors

SpecialCharacters 

Fields

prettyHiding :: LensHiding a => a -> (Doc -> Doc) -> Doc -> Doc #

prettyHiding info visible doc puts the correct braces around doc according to info info and returns visible doc if the we deal with a visible thing.

newtype Tel #

Constructors

Tel Telescope 
Instances
Pretty Tel # 
Instance details

Defined in Agda.Syntax.Concrete.Pretty

Methods

pretty :: Tel -> Doc #

prettyPrec :: Int -> Tel -> Doc #

prettyList :: [Tel] -> Doc #

prettyOpApp :: forall a. Pretty a => QName -> [NamedArg (MaybePlaceholder a)] -> [Doc] #

Orphan instances

Show Pragma # 
Instance details

Show ModuleApplication # 
Instance details

Show Declaration # 
Instance details

Show WhereClause # 
Instance details

Show RHS # 
Instance details

Methods

showsPrec :: Int -> RHS -> ShowS #

show :: RHS -> String #

showList :: [RHS] -> ShowS #

Show LHSCore # 
Instance details

Show LHS # 
Instance details

Methods

showsPrec :: Int -> LHS -> ShowS #

show :: LHS -> String #

showList :: [LHS] -> ShowS #

Show TypedBinding # 
Instance details

Show TypedBindings # 
Instance details

Show LamBinding # 
Instance details

Show Pattern # 
Instance details

Show Expr # 
Instance details

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #

Pretty Fixity' # 
Instance details

Pretty Relevance # 
Instance details

Pretty Induction # 
Instance details

Pretty GenPart # 
Instance details

Pretty Fixity # 
Instance details

Methods

pretty :: Fixity -> Doc #

prettyPrec :: Int -> Fixity -> Doc #

prettyList :: [Fixity] -> Doc #

Pretty Pragma # 
Instance details

Methods

pretty :: Pragma -> Doc #

prettyPrec :: Int -> Pragma -> Doc #

prettyList :: [Pragma] -> Doc #

Pretty OpenShortHand # 
Instance details

Pretty ModuleApplication # 
Instance details

Pretty Declaration # 
Instance details

Pretty LamClause # 
Instance details

Pretty WhereClause # 
Instance details

Pretty RHS # 
Instance details

Methods

pretty :: RHS -> Doc #

prettyPrec :: Int -> RHS -> Doc #

prettyList :: [RHS] -> Doc #

Pretty LHSCore # 
Instance details

Pretty LHS # 
Instance details

Methods

pretty :: LHS -> Doc #

prettyPrec :: Int -> LHS -> Doc #

prettyList :: [LHS] -> Doc #

Pretty TypedBinding # 
Instance details

Pretty BoundName # 
Instance details

Pretty TypedBindings # 
Instance details

Pretty LamBinding # 
Instance details

Pretty DoStmt # 
Instance details

Methods

pretty :: DoStmt -> Doc #

prettyPrec :: Int -> DoStmt -> Doc #

prettyList :: [DoStmt] -> Doc #

Pretty Pattern # 
Instance details

Pretty Expr # 
Instance details

Methods

pretty :: Expr -> Doc #

prettyPrec :: Int -> Expr -> Doc #

prettyList :: [Expr] -> Doc #

Pretty ModuleAssignment # 
Instance details

Pretty a => Pretty (MaybePlaceholder a) # 
Instance details

Pretty e => Pretty (Named_ e) # 
Instance details

Methods

pretty :: Named_ e -> Doc #

prettyPrec :: Int -> Named_ e -> Doc #

prettyList :: [Named_ e] -> Doc #

Pretty a => Pretty (Arg a) # 
Instance details

Methods

pretty :: Arg a -> Doc #

prettyPrec :: Int -> Arg a -> Doc #

prettyList :: [Arg a] -> Doc #

Pretty a => Pretty (WithHiding a) # 
Instance details

Pretty (ThingWithFixity Name) # 
Instance details

Pretty a => Pretty (FieldAssignment' a) # 
Instance details

Pretty (OpApp Expr) # 
Instance details

(Pretty a, Pretty b) => Show (ImportDirective' a b) # 
Instance details

(Pretty a, Pretty b) => Pretty (Either a b) # 
Instance details

Methods

pretty :: Either a b -> Doc #

prettyPrec :: Int -> Either a b -> Doc #

prettyList :: [Either a b] -> Doc #

(Pretty a, Pretty b) => Pretty (a, b) # 
Instance details

Methods

pretty :: (a, b) -> Doc #

prettyPrec :: Int -> (a, b) -> Doc #

prettyList :: [(a, b)] -> Doc #

(Pretty a, Pretty b) => Pretty (ImportedName' a b) # 
Instance details

(Pretty a, Pretty b) => Pretty (Using' a b) # 
Instance details

Methods

pretty :: Using' a b -> Doc #

prettyPrec :: Int -> Using' a b -> Doc #

prettyList :: [Using' a b] -> Doc #

(Pretty a, Pretty b) => Pretty (ImportDirective' a b) # 
Instance details