refactor: make LeanPaths usage forward-compatible (leanprover/lake#48)

This commit is contained in:
Sebastian Ullrich 2022-01-23 02:55:16 +01:00 committed by GitHub
parent 6d7fc7216c
commit df1c1cde12

View file

@ -93,4 +93,4 @@ def leanSrcPath (self : Workspace) : SearchPath :=
/-- The `LeanPaths` of the workspace. -/
def leanPaths (self : Workspace) : LeanPaths :=
let pkgs := self.packageList
LeanPaths.mk (pkgs.map (·.oleanDir)) (pkgs.map (·.srcDir))
{ oleanPath := pkgs.map (·.oleanDir), srcPath := pkgs.map (·.srcDir) }