summaryrefslogtreecommitdiff
path: root/dhall/src/imports.rs
blob: 6d8d670187208b3fe9e9dcfcef11109dc965a278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use dhall_core::{Expr, FilePrefix, Import, ImportLocation, ImportMode, X};

// fn resolve_import(import: Import) -> Expr<X, Import> {

// }

pub fn resolve_imports<'i, S: Clone>(
    expr: &Expr<'i, S, Import>,
) -> Expr<'i, S, X> {
    let no_import = |_: &Import| -> X { panic!("ahhh import") };
    expr.map_embed(&no_import)
}