mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
refactor(library/system/io): move into init
This commit is contained in:
committed by
Leonardo de Moura
parent
a260bf91d4
commit
37e5f03351
@@ -1,4 +1,4 @@
|
||||
import init.lean.config system.io
|
||||
import init.lean.config init.io
|
||||
open io
|
||||
|
||||
@[reducible] def m := reader_t handle io
|
||||
|
||||
@@ -6,4 +6,4 @@ Authors: Leonardo de Moura
|
||||
prelude
|
||||
import init.core init.control init.data.basic init.version
|
||||
import init.function init.util init.coe init.wf init.meta
|
||||
import init.meta.well_founded_tactics init.data
|
||||
import init.meta.well_founded_tactics init.data init.io
|
||||
|
||||
@@ -90,7 +90,7 @@ def main(argv=None):
|
||||
return 0
|
||||
with open(tst_file, 'w') as f:
|
||||
f.write('-- DO NOT EDIT, automatically generated file, generator scripts/gen_constants_cpp.py\n')
|
||||
f.write("import system.io\n")
|
||||
f.write("import init.io\n")
|
||||
f.write("open tactic\n");
|
||||
f.write("meta def script_check_id (n : name) : tactic unit :=\n");
|
||||
f.write("do env ← get_env, (env^.get n >> return ()) <|> (guard $ env^.is_namespace n) <|> (attribute.get_instances n >> return ()) <|> fail (\"identifier '\" ++ to_string n ++ \"' is not a constant, namespace nor attribute\")\n");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import system.io
|
||||
import init.io
|
||||
import init.lean.ir.lirc
|
||||
open lean.ir io
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import system.io init.lean.parser.identifier init.lean.ir.parser init.lean.ir.format
|
||||
import init.io init.lean.parser.identifier init.lean.ir.parser init.lean.ir.format
|
||||
open lean.parser
|
||||
open lean.parser.monad_parsec
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import init.lean.parser.reader.module system.io
|
||||
import init.lean.parser.reader.module init.io
|
||||
open lean.parser
|
||||
open lean.parser.reader
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/- Benchmark for new code generator -/
|
||||
import system.io
|
||||
import init.io
|
||||
|
||||
inductive Expr
|
||||
| Val : int → Expr
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-- TODO: renable test after we restore tactic framework
|
||||
#exit
|
||||
import system.io
|
||||
import init.io
|
||||
|
||||
/- An extensible effects library, inspired by "Freer Monads, More Extensible Effects" (O. Kiselyov, H. Ishii)
|
||||
and https://github.com/lexi-lambda/freer-simple -/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import system.io
|
||||
import init.io
|
||||
|
||||
/- Based on https://github.com/slindley/effect-handlers -/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import system.io
|
||||
import init.io
|
||||
import init.lean.ir.lirc
|
||||
open lean.ir
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import system.io
|
||||
import init.io
|
||||
import init.lean.ir.parser init.lean.ir.format
|
||||
import init.lean.ir.elim_phi init.lean.ir.type_check
|
||||
import init.lean.ir.extract_cpp
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
import system.io
|
||||
import init.io
|
||||
#print trust
|
||||
|
||||
Reference in New Issue
Block a user