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

Safe HaskellNone
LanguageHaskell98

Agda.Syntax.Concrete.Pretty

Contents

Description

Pretty printer for the concrete syntax.

Synopsis

Documentation

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

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 Source #

Constructors

Tel Telescope 

Instances

Orphan instances

Show Pragma Source # 
Show ModuleApplication Source # 
Show Declaration Source # 
Show WhereClause Source # 
Show RHS Source # 

Methods

showsPrec :: Int -> RHS -> ShowS #

show :: RHS -> String #

showList :: [RHS] -> ShowS #

Show LHSCore Source # 
Show LHS Source # 

Methods

showsPrec :: Int -> LHS -> ShowS #

show :: LHS -> String #

showList :: [LHS] -> ShowS #

Show TypedBinding Source # 
Show TypedBindings Source # 
Show LamBinding Source # 
Show Pattern Source # 
Show Expr Source # 

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #

Pretty Relevance Source # 
Pretty Induction Source # 
Pretty Fixity' Source # 
Pretty GenPart Source # 
Pretty Notation Source # 
Pretty Fixity Source # 
Pretty Pragma Source # 
Pretty OpenShortHand Source # 
Pretty ModuleApplication Source # 
Pretty Declaration Source # 
Pretty WhereClause Source # 
Pretty RHS Source # 

Methods

pretty :: RHS -> Doc Source #

prettyPrec :: Int -> RHS -> Doc Source #

Pretty LHSCore Source # 
Pretty LHS Source # 

Methods

pretty :: LHS -> Doc Source #

prettyPrec :: Int -> LHS -> Doc Source #

Pretty TypedBinding Source # 
Pretty BoundName Source # 
Pretty TypedBindings Source # 
Pretty LamBinding Source # 
Pretty Pattern Source # 
Pretty Expr Source # 
Pretty ModuleAssignment Source # 
Pretty [Declaration] Source # 
Pretty [Pattern] Source # 
Pretty a => Pretty (MaybePlaceholder a) Source # 
Pretty e => Pretty (Named_ e) Source # 

Methods

pretty :: Named_ e -> Doc Source #

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

Pretty e => Pretty (Arg e) Source # 

Methods

pretty :: Arg e -> Doc Source #

prettyPrec :: Int -> Arg e -> Doc Source #

Pretty a => Pretty (WithHiding a) Source # 
Pretty (ThingWithFixity Name) Source # 
Pretty a => Pretty (FieldAssignment' a) Source # 
Pretty (OpApp Expr) Source # 
(Pretty a, Pretty b) => Show (ImportDirective' a b) Source # 
(Pretty a, Pretty b) => Pretty (Either a b) Source # 

Methods

pretty :: Either a b -> Doc Source #

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

(Pretty a, Pretty b) => Pretty (a, b) Source # 

Methods

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

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

(Pretty a, Pretty b) => Pretty (ImportedName' a b) Source # 
(Pretty a, Pretty b) => Pretty (Using' a b) Source # 

Methods

pretty :: Using' a b -> Doc Source #

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

(Pretty a, Pretty b) => Pretty (ImportDirective' a b) Source #