This PR adjusts the experimental module system to make `private` the default visibility modifier in `module`s, introducing `public` as a new modifier instead. `public section` can be used to revert the default for an entire section, though this is more intended to ease gradual adoption of the new semantics such as in `Init` (and soon `Std`) where they should be replaced by a future decl-by-decl re-review of visibilities.
22 lines
457 B
Text
22 lines
457 B
Text
/-
|
|
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
Authors: Leonardo de Moura
|
|
|
|
Extra notation that depends on Init/Meta
|
|
-/
|
|
|
|
module
|
|
|
|
prelude
|
|
public import Init.Data.ToString.Macro
|
|
public import Init.Meta
|
|
|
|
public section
|
|
|
|
namespace Lean
|
|
|
|
macro "Macro.trace[" id:ident "]" s:interpolatedStr(term) : term =>
|
|
`(Macro.trace $(quote id.getId.eraseMacroScopes) (s! $s))
|
|
|
|
end Lean
|