Documentation

Lean.PrettyPrinter

def Lean.PPContext.runCoreM {α : Type} (ppCtx : PPContext) (x : CoreM α) :
IO α
Equations
    Instances For
      def Lean.PPContext.runMetaM {α : Type} (ppCtx : PPContext) (x : MetaM α) :
      IO α
      Equations
        Instances For
          Equations
            Instances For
              Equations
                Instances For
                  Equations
                    Instances For
                      Equations
                        Instances For

                          Return a fmt representing pretty-printed e together with a map from tags in fmt to Elab.Info nodes produced by the delaborator at various subexpressions of e.

                          Equations
                            Instances For
                              @[export lean_pp_expr]
                              Equations
                                Instances For
                                  Equations
                                    Instances For
                                      Equations
                                        Instances For
                                          def Lean.PrettyPrinter.ppModule (stx : TSyntax `Lean.Parser.Module.module) :
                                          Equations
                                            Instances For

                                              Pretty-prints a declaration c as c.{<levels>} <params> : <type>.

                                              Equations
                                                Instances For
                                                  Equations
                                                    Instances For

                                                      Turns a MetaM FormatWithInfos into a MessageData.lazy which will run the monadic value.

                                                      Equations
                                                        Instances For

                                                          Turns a MetaM MessageData into a MessageData.lazy which will run the monadic value. The optional array of expressions is used to set the hasSyntheticSorry fields, and should comprise the expressions that are included in the message data.

                                                          Equations
                                                            Instances For

                                                              Pretty print a const expression using delabConst and generate terminfo. This function avoids inserting @ if the constant is for a function whose first argument is implicit, which is what the default toMessageData for Expr does. Panics if e is not a constant.

                                                              Equations
                                                                Instances For

                                                                  Generates MessageData for a declaration c as c.{<levels>} <params> : <type>, with terminfo.

                                                                  Equations
                                                                    Instances For