pub fn expand_sum_type(
    error_channel: Sender<Box<dyn Diagnostic>>,
    entries: &mut FxHashMap<String, (Entry, EntryMeta)>,
    sum: &SumTypeDecl,
    derivations: FxHashMap<Derive, Range>
) -> bool