Hi, these are just some spelling corrections. There is one I wasn't completely sure about in src/Init/Data/List/Lemmas.lean: > See also > ... > Also > \* \`Init.Data.List.Monadic\` for **addiation** _(additional?)_ lemmas about \`List.mapM\` and \`List.forM\`
57 lines
1.5 KiB
Text
57 lines
1.5 KiB
Text
/-
|
|
Copyright (c) 2025 Mac Malone. All rights reserved.
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
Authors: Mac Malone
|
|
-/
|
|
module
|
|
|
|
prelude
|
|
public import Lake.Config.Pattern
|
|
public import Lake.Config.MetaClasses
|
|
public import Init.Data.ToString.Name
|
|
meta import all Lake.Config.Meta
|
|
|
|
open Lean System
|
|
|
|
namespace Lake
|
|
|
|
/-- The declarative configuration for a single input file. -/
|
|
public configuration InputFileConfig (name : Name) where
|
|
/--
|
|
The path to the input file (relative to the package root).
|
|
|
|
Defaults to the name of the target.
|
|
-/
|
|
path : FilePath := name.toString (escape := false)
|
|
/--
|
|
Whether this is a text file.
|
|
If so, Lake normalize line endings for its trace.
|
|
This avoids rebuilds across platforms with different line endings.
|
|
|
|
Defaults to `false`.
|
|
-/
|
|
text : Bool := false
|
|
|
|
/-- The declarative configuration for an input directory. -/
|
|
public configuration InputDirConfig (name : Name) where
|
|
/--
|
|
The path to the input directory (relative to the package root).
|
|
|
|
Defaults to the name of the target.
|
|
-/
|
|
path : FilePath := name.toString (escape := false)
|
|
/--
|
|
Whether the directory is composed of text files.
|
|
If so, Lake normalize line endings for their traces.
|
|
This avoids rebuilds across platforms with different line endings.
|
|
|
|
Defaults to `false`.
|
|
-/
|
|
text : Bool := false
|
|
/-
|
|
Includes only the files from the directory
|
|
whose paths satisfy the pattern.
|
|
|
|
Defaults to including every file.
|
|
-/
|
|
filter : PathPat := .star
|