diff --git a/compiler/fmt/src/annotation.rs b/compiler/fmt/src/annotation.rs index 5f6887965c..f566abc85d 100644 --- a/compiler/fmt/src/annotation.rs +++ b/compiler/fmt/src/annotation.rs @@ -277,7 +277,7 @@ impl<'a> Formattable<'a> for TypeAnnotation<'a> { buf.push(')') } } - Apply(_, name, arguments) => { + Apply(pkg, name, arguments) => { // NOTE apply is never multiline let write_parens = parens == Parens::InApply && !arguments.is_empty(); @@ -285,6 +285,11 @@ impl<'a> Formattable<'a> for TypeAnnotation<'a> { buf.push('(') } + if !pkg.is_empty() { + buf.push_str(pkg); + buf.push('.'); + } + buf.push_str(name); for argument in *arguments {