use daml_lf::DamlLfError;
#[derive(Debug, thiserror::Error)]
pub enum DamlCodeGenError {
#[error("invalid module matcher regex: {0}")]
InvalidModuleMatcherRegex(#[from] regex::Error),
#[error("Daml LF error: {0}")]
DamlLfError(#[from] DamlLfError),
#[error("IO error: {0}")]
IoError(#[from] std::io::Error),
}
pub type DamlCodeGenResult<T> = Result<T, DamlCodeGenError>;