blob: 4240b5e1deeeeec6b683e235df24df90edc31c47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// use dhall_core::{Expr, FilePrefix, Import, ImportLocation, ImportMode, X};
use dhall_core::{Expr_, StringLike, Import, X};
// use std::path::Path;
// use std::path::PathBuf;
pub fn resolve_imports<Label: StringLike, S: Clone>(
expr: &Expr_<Label, S, Import>,
) -> Expr_<Label, S, X> {
let no_import = |_: &Import| -> X { panic!("ahhh import") };
expr.map_embed(&no_import)
}
|