summaryrefslogtreecommitdiff
path: root/dhall/src/lib.rs
diff options
context:
space:
mode:
authorNadrieril2019-05-06 22:09:55 +0200
committerNadrieril2019-05-06 22:09:55 +0200
commit423fdeebe9247b16744fae4b50df415bbd08be04 (patch)
treef2f16407d7e365e6fecee400a1959ca08b2a5156 /dhall/src/lib.rs
parent2075cba6d883278a534afd2d8fe8f0a5e9b2f0d0 (diff)
Reorganize dhall into a phase structure
Diffstat (limited to 'dhall/src/lib.rs')
-rw-r--r--dhall/src/lib.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/dhall/src/lib.rs b/dhall/src/lib.rs
index a531f64..ec110f7 100644
--- a/dhall/src/lib.rs
+++ b/dhall/src/lib.rs
@@ -123,18 +123,11 @@
#[macro_use]
mod tests;
-#[cfg(test)]
-mod parser;
-
-mod binary;
/// When manipulating Dhall expressions goes wrong.
pub mod error;
-pub mod expr;
-mod imports;
-mod normalize;
+mod phase;
mod serde;
mod traits;
-mod typecheck;
/// Deserialization of Dhall expressions into Rust
pub mod de {
@@ -153,7 +146,7 @@ pub mod de {
/// expression has that type.
pub fn from_str<'a, T: Deserialize<'a>>(
s: &'a str,
- ty: Option<&crate::expr::Type>,
+ ty: Option<&crate::phase::Type>,
) -> crate::error::Result<T> {
T::from_str(s, ty)
}