Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pretty printer for the concrete syntax.
Synopsis
- prettyHiding :: LensHiding a => a -> (Doc -> Doc) -> Doc -> Doc
- attributesForModality :: Modality -> Doc
- prettyRelevance :: LensRelevance a => a -> Doc -> Doc
- bracesAndSemicolons :: Foldable t => t Doc -> Doc
- prettyQuantity :: LensQuantity a => a -> Doc -> Doc
- prettyLock :: LensLock a => a -> Doc -> Doc
- prettyErased :: Erased -> Doc -> Doc
- prettyCohesion :: LensCohesion a => a -> Doc -> Doc
- prettyTactic :: BoundName -> Doc -> Doc
- prettyTactic' :: TacticAttribute -> Doc -> Doc
- prettyFiniteness :: BoundName -> Doc -> Doc
- prettyOpApp :: Pretty a => Aspect -> QName -> [NamedArg (MaybePlaceholder a)] -> [Doc]
- newtype Tel = Tel Telescope
- smashTel :: Telescope -> Telescope
- data NamedBinding = NamedBinding {
- withHiding :: Bool
- namedBinding :: NamedArg Binder
- isLabeled :: NamedArg Binder -> Maybe ArgName
- pRecord :: Erased -> Name -> [RecordDirective] -> [LamBinding] -> Maybe Expr -> [Declaration] -> Doc
- pHasEta0 :: HasEta0 -> Doc
- pRecordDirective :: RecordDirective -> Doc
- module Agda.Syntax.Concrete.Glyph
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.
attributesForModality :: Modality -> Doc Source #
Show the attributes necessary to recover a modality, in long-form (e.g. using at-syntax rather than dots). For the default modality, the result is at-ω (rather than the empty document). Suitable for showing modalities outside of binders.
prettyRelevance :: LensRelevance a => a -> Doc -> Doc Source #
bracesAndSemicolons :: Foldable t => t Doc -> Doc Source #
prettyQuantity :: LensQuantity a => a -> Doc -> Doc Source #
prettyCohesion :: LensCohesion a => a -> Doc -> Doc Source #
prettyTactic' :: TacticAttribute -> Doc -> Doc Source #
prettyOpApp :: Pretty a => Aspect -> QName -> [NamedArg (MaybePlaceholder a)] -> [Doc] Source #
data NamedBinding Source #
NamedBinding | |
|
Instances
Pretty NamedBinding Source # | |
Defined in Agda.Syntax.Concrete.Pretty pretty :: NamedBinding -> Doc Source # prettyPrec :: Int -> NamedBinding -> Doc Source # prettyList :: [NamedBinding] -> Doc Source # |
pRecord :: Erased -> Name -> [RecordDirective] -> [LamBinding] -> Maybe Expr -> [Declaration] -> Doc Source #
module Agda.Syntax.Concrete.Glyph