Documentation

Lake.Build.Context

Configuration options for a Lake build.

  • oldMode : Bool

    Use modification times for trace checking.

  • trustHash : Bool

    Whether to trust .hash files.

  • noBuild : Bool

    Early exit if a target has to be rebuilt.

  • verbosity : Verbosity

    Verbosity level (-q, -v, or neither).

  • showSuccess : Bool

    Whether to print a message when the build finishes successfully (if not quiet).

  • outputsFile? : Option System.FilePath

    File to save input-to-output mappings from the build of the workspace's root

  • leanOptOverrides : Lean.NameMap Lean.LeanOptions

    Per-package Lean option overrides, applied to every module whose owning package's baseName appears as a key. When recFetchSetup builds module M, the LeanOptions associated with M.pkg.baseName (if any) are appended to M.leanOptions, overriding clashing entries.

    Used by lake lint to inject linter.extra/linter.all into every module of a target package (so transitively-imported first-party modules capture linter-tagged warnings), without touching dependencies.

Instances For

    Whether the build should show progress information.

    Verbosity.quiet hides progress and, for a noBuild, Verbosity.verbose shows progress.

    Equations
    Instances For

      Mutable reference of registered build jobs.

      Equations
      Instances For
        @[inline]

        Returns a new empty job queue.

        Equations
        Instances For

          A Lake context with a build configuration and additional build data.

          Instances For
            @[reducible, inline]
            abbrev Lake.BuildT (m : TypeType u_1) (α : Type) :
            Type u_1

            A transformer to equip a monad with a BuildContext.

            Equations
            Instances For
              @[reducible, inline]
              abbrev Lake.MonadBuild (m : TypeType u) :

              A monad equipped with a Lake build context.

              Equations
              Instances For
                @[implicit_reducible]
                Equations
                @[inline]
                Equations
                Instances For
                  @[inline]
                  def Lake.getIsOldMode {m : TypeType u_1} [Functor m] [MonadBuild m] :
                  Equations
                  Instances For
                    @[inline]
                    def Lake.getTrustHash {m : TypeType u_1} [Functor m] [MonadBuild m] :
                    Equations
                    Instances For
                      @[inline]
                      def Lake.getNoBuild {m : TypeType u_1} [Functor m] [MonadBuild m] :
                      Equations
                      Instances For
                        @[inline]
                        def Lake.getVerbosity {m : TypeType u_1} [Functor m] [MonadBuild m] :
                        Equations
                        Instances For
                          @[inline]
                          def Lake.getIsVerbose {m : TypeType u_1} [Functor m] [MonadBuild m] :
                          Equations
                          Instances For
                            @[inline]
                            def Lake.getIsQuiet {m : TypeType u_1} [Functor m] [MonadBuild m] :
                            Equations
                            Instances For