| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Agda.Syntax.Concrete.Pretty
Contents
Description
Pretty printer for the concrete syntax.
Synopsis
- data SpecialCharacters = SpecialCharacters {
- _dbraces :: Doc -> Doc
 - _lambda :: Doc
 - _arrow :: Doc
 - _forallQ :: Doc
 - _leftIdiomBrkt :: Doc
 - _rightIdiomBrkt :: Doc
 - _emptyIdiomBrkt :: Doc
 
 - specialCharacters :: SpecialCharacters
 - braces' :: Doc -> Doc
 - dbraces :: Doc -> Doc
 - forallQ :: Doc
 - leftIdiomBrkt :: Doc
 - rightIdiomBrkt :: Doc
 - emptyIdiomBrkt :: Doc
 - bracesAndSemicolons :: [Doc] -> Doc
 - arrow :: Doc
 - lambda :: Doc
 - prettyHiding :: LensHiding a => a -> (Doc -> Doc) -> Doc -> Doc
 - prettyRelevance :: LensRelevance a => a -> Doc -> Doc
 - prettyQuantity :: LensQuantity a => a -> Doc -> Doc
 - prettyCohesion :: LensCohesion a => a -> Doc -> Doc
 - prettyTactic :: BoundName -> Doc -> Doc
 - prettyTactic' :: TacticAttribute -> Doc -> Doc
 - data NamedBinding = NamedBinding {}
 - isLabeled :: NamedArg Binder -> Maybe ArgName
 - newtype Tel = Tel Telescope
 - smashTel :: Telescope -> Telescope
 - pRecord :: Name -> Maybe (Ranged Induction) -> Maybe HasEta -> Maybe (Name, IsInstance) -> [LamBinding] -> Maybe Expr -> [Declaration] -> Doc
 - prettyOpApp :: forall a. Pretty a => QName -> [NamedArg (MaybePlaceholder a)] -> [Doc]
 
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 
  | |
leftIdiomBrkt :: Doc Source #
rightIdiomBrkt :: Doc Source #
emptyIdiomBrkt :: Doc Source #
bracesAndSemicolons :: [Doc] -> Doc Source #
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.
prettyRelevance :: LensRelevance a => a -> Doc -> Doc Source #
prettyQuantity :: LensQuantity a => a -> Doc -> Doc Source #
prettyCohesion :: LensCohesion a => a -> Doc -> Doc Source #
prettyTactic' :: TacticAttribute -> Doc -> Doc Source #
data NamedBinding Source #
Constructors
| NamedBinding | |
Fields 
  | |
Instances
| Pretty NamedBinding Source # | |
Defined in Agda.Syntax.Concrete.Pretty Methods pretty :: NamedBinding -> Doc Source # prettyPrec :: Int -> NamedBinding -> Doc Source # prettyList :: [NamedBinding] -> Doc Source #  | |
pRecord :: Name -> Maybe (Ranged Induction) -> Maybe HasEta -> Maybe (Name, IsInstance) -> [LamBinding] -> Maybe Expr -> [Declaration] -> Doc Source #
prettyOpApp :: forall a. Pretty a => QName -> [NamedArg (MaybePlaceholder a)] -> [Doc] Source #