diff options
author | Nadrieril | 2020-04-06 22:13:36 +0100 |
---|---|---|
committer | Nadrieril | 2020-04-06 22:13:36 +0100 |
commit | 2cf9169e1a21e1196e0265847abcfa904e2d45a3 (patch) | |
tree | df4c04f27832fc6dd9422505ea7a80a23bbac609 /dhall/src | |
parent | fff4c46e09d4edf25eba737f4d71bfdb1dbf4a82 (diff) |
Move builtins module up a level
Diffstat (limited to '')
-rw-r--r-- | dhall/src/builtins.rs (renamed from dhall/src/semantics/builtins.rs) | 0 | ||||
-rw-r--r-- | dhall/src/lib.rs | 1 | ||||
-rw-r--r-- | dhall/src/semantics/mod.rs | 2 | ||||
-rw-r--r-- | dhall/src/semantics/nze/nir.rs | 5 | ||||
-rw-r--r-- | dhall/src/semantics/tck/typecheck.rs | 5 |
5 files changed, 6 insertions, 7 deletions
diff --git a/dhall/src/semantics/builtins.rs b/dhall/src/builtins.rs index f65e8d1..f65e8d1 100644 --- a/dhall/src/semantics/builtins.rs +++ b/dhall/src/builtins.rs diff --git a/dhall/src/lib.rs b/dhall/src/lib.rs index e00177c..61327cb 100644 --- a/dhall/src/lib.rs +++ b/dhall/src/lib.rs @@ -10,6 +10,7 @@ mod tests; +pub mod builtins; pub mod error; pub mod operations; pub mod semantics; diff --git a/dhall/src/semantics/mod.rs b/dhall/src/semantics/mod.rs index 468d8b1..a488c31 100644 --- a/dhall/src/semantics/mod.rs +++ b/dhall/src/semantics/mod.rs @@ -1,9 +1,7 @@ -pub mod builtins; pub mod nze; pub mod parse; pub mod resolve; pub mod tck; -pub use self::builtins::*; pub use self::nze::*; pub use self::resolve::*; pub use self::tck::*; diff --git a/dhall/src/semantics/nze/nir.rs b/dhall/src/semantics/nze/nir.rs index 5c67c02..e2a0113 100644 --- a/dhall/src/semantics/nze/nir.rs +++ b/dhall/src/semantics/nze/nir.rs @@ -1,11 +1,12 @@ use std::collections::HashMap; use std::rc::Rc; +use crate::builtins::BuiltinClosure; use crate::operations::OpKind; use crate::semantics::nze::lazy; use crate::semantics::{ - apply_any, normalize_hir, normalize_one_layer, squash_textlit, Binder, - BuiltinClosure, Hir, HirKind, NzEnv, NzVar, TyEnv, Type, Universe, VarEnv, + apply_any, normalize_hir, normalize_one_layer, squash_textlit, Binder, Hir, + HirKind, NzEnv, NzVar, TyEnv, Type, Universe, VarEnv, }; use crate::syntax::{ BinOp, Builtin, Const, Expr, ExprKind, InterpolatedTextContents, Label, diff --git a/dhall/src/semantics/tck/typecheck.rs b/dhall/src/semantics/tck/typecheck.rs index 7481f07..a31f15c 100644 --- a/dhall/src/semantics/tck/typecheck.rs +++ b/dhall/src/semantics/tck/typecheck.rs @@ -1,11 +1,10 @@ use std::cmp::max; use std::collections::HashMap; +use crate::builtins::type_of_builtin; use crate::error::{ErrorBuilder, TypeError, TypeMessage}; use crate::operations::typecheck_operation; -use crate::semantics::{ - type_of_builtin, Hir, HirKind, Nir, NirKind, Tir, TyEnv, Type, -}; +use crate::semantics::{Hir, HirKind, Nir, NirKind, Tir, TyEnv, Type}; use crate::syntax::{ Builtin, Const, ExprKind, InterpolatedTextContents, NumKind, Span, }; |