diff options
author | Nadrieril | 2020-01-20 15:27:19 +0000 |
---|---|---|
committer | Nadrieril | 2020-01-20 15:27:19 +0000 |
commit | c448698f797f2304dca0e0b8b833959de00ca079 (patch) | |
tree | f5a292aa4aa53f95b1b058a65df48b201ee969d3 /dhall/src/error | |
parent | aec80599f161096b68cac88ffb8852a61b62fcfa (diff) |
Reimplement basic tck/nze with proper environments
Inspired from dhall_haskell
Diffstat (limited to '')
-rw-r--r-- | dhall/src/error/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dhall/src/error/mod.rs b/dhall/src/error/mod.rs index 56bc8ab..844a3e4 100644 --- a/dhall/src/error/mod.rs +++ b/dhall/src/error/mod.rs @@ -174,3 +174,8 @@ impl From<TypeError> for Error { Error::Typecheck(err) } } +impl From<crate::semantics::nze::nzexpr::TypeError> for Error { + fn from(_: crate::semantics::nze::nzexpr::TypeError) -> Error { + Error::Decode(DecodeError::WrongFormatError("type error".to_string())) + } +} |