Agda-2.5.3: 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

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

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

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 Fixity' Source # 
Pretty Relevance Source # 
Pretty Induction Source # 
Pretty GenPart Source # 
Pretty Fixity Source # 
Pretty Pragma Source # 
Pretty OpenShortHand Source # 
Pretty ModuleApplication Source # 
Pretty Declaration Source # 
Pretty WhereClause Source # 
Pretty RHS Source # 
Pretty LHSCore Source # 
Pretty LHS Source # 
Pretty TypedBinding Source # 
Pretty BoundName Source # 
Pretty TypedBindings Source # 
Pretty LamBinding Source # 
Pretty Pattern Source # 
Pretty Expr Source # 
Pretty ModuleAssignment Source # 
Pretty a => Pretty (MaybePlaceholder a) Source # 
Pretty e => Pretty (Named_ e) Source # 
Pretty a => Pretty (Arg a) Source # 

Methods

pretty :: Arg a -> Doc Source #

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

prettyList :: [Arg a] -> 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 #

prettyList :: [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 #

prettyList :: [(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 #

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

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