Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Dec 9, 2024
1 parent 73e5d9d commit 24fd40e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Mathlib/Lean/CoreM.lean
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def CoreM.withImportModules {α : Type} (modules : Array Name) (run : CoreM α)
(trustLevel : UInt32 := 0) (fileName := "") :
IO α := unsafe do
if let some sp := searchPath then searchPathRef.set sp
Lean.withImportModules (trustLevel := trustLevel) (modules.map (Import.mk · false)) options fun env =>
let ctx := {fileName, options, fileMap := default}
let state := {env}
Prod.fst <$> (CoreM.toIO · ctx state) do
run
Lean.withImportModules (trustLevel := trustLevel) (modules.map (Import.mk · false)) options
fun env =>
let ctx := {fileName, options, fileMap := default}
let state := {env}
Prod.fst <$> (CoreM.toIO · ctx state) do
run

0 comments on commit 24fd40e

Please sign in to comment.