Agda-2.5.4.1.20181026: 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 Source #

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 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
Pretty Tel Source # 
Instance details

Defined in Agda.Syntax.Concrete.Pretty

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

Orphan instances

Show Pragma Source # 
Instance details

Show ModuleApplication Source # 
Instance details

Show Declaration Source # 
Instance details

Show WhereClause Source # 
Instance details

Show RHS Source # 
Instance details

Methods

showsPrec :: Int -> RHS -> ShowS #

show :: RHS -> String #

showList :: [RHS] -> ShowS #

Show LHSCore Source # 
Instance details

Show LHS Source # 
Instance details

Methods

showsPrec :: Int -> LHS -> ShowS #

show :: LHS -> String #

showList :: [LHS] -> ShowS #

Show TypedBinding Source # 
Instance details

Show TypedBindings Source # 
Instance details

Show LamBinding Source # 
Instance details

Show Pattern Source # 
Instance details

Show Expr Source # 
Instance details

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #

Pretty Fixity' Source # 
Instance details

Pretty Relevance Source # 
Instance details

Pretty Induction Source # 
Instance details

Pretty GenPart Source # 
Instance details

Pretty Fixity Source # 
Instance details

Pretty Pragma Source # 
Instance details

Pretty OpenShortHand Source # 
Instance details

Pretty ModuleApplication Source # 
Instance details

Pretty Declaration Source # 
Instance details

Pretty LamClause Source # 
Instance details

Pretty WhereClause Source # 
Instance details

Pretty RHS Source # 
Instance details

Pretty LHSCore Source # 
Instance details

Pretty LHS Source # 
Instance details

Pretty TypedBinding Source # 
Instance details

Pretty BoundName Source # 
Instance details

Pretty TypedBindings Source # 
Instance details

Pretty LamBinding Source # 
Instance details

Pretty DoStmt Source # 
Instance details

Pretty Pattern Source # 
Instance details

Pretty Expr Source # 
Instance details

Pretty ModuleAssignment Source # 
Instance details

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

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

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

Methods

pretty :: Arg a -> Doc Source #

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

prettyList :: [Arg a] -> Doc Source #

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

Pretty (ThingWithFixity Name) Source # 
Instance details

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

Pretty (OpApp Expr) Source # 
Instance details

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

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

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

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

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

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