refactor(library/system/io): move into init

This commit is contained in:
Sebastian Ullrich
2018-08-15 09:43:48 -07:00
committed by Leonardo de Moura
parent a260bf91d4
commit 37e5f03351
13 changed files with 12 additions and 12 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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");

View File

@@ -1,4 +1,4 @@
import system.io
import init.io
import init.lean.ir.lirc
open lean.ir io

View File

@@ -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

View File

@@ -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

View File

@@ -1,5 +1,5 @@
/- Benchmark for new code generator -/
import system.io
import init.io
inductive Expr
| Val : int Expr

View File

@@ -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 -/

View File

@@ -1,4 +1,4 @@
import system.io
import init.io
/- Based on https://github.com/slindley/effect-handlers -/

View File

@@ -1,4 +1,4 @@
import system.io
import init.io
import init.lean.ir.lirc
open lean.ir

View File

@@ -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

View File

@@ -1,2 +1,2 @@
import system.io
import init.io
#print trust