diff --git a/pkg/compiler/binder/package.go b/pkg/compiler/binder/package.go
index <HASH>..<HASH> 100644
--- a/pkg/compiler/binder/package.go
+++ b/pkg/compiler/binder/package.go
@@ -26,7 +26,7 @@ func (b *binder) BindPackage(pkg *pack.Package) *symbols.Package {
 
 func (b *binder) resolveBindPackage(pkg *pack.Package, pkgurl pack.PackageURL) *symbols.ResolvedPackage {
 	// If the package name isn't a legal identifier, say so.
-	if !tokens.IsQName(string(pkg.Name)) {
+	if !tokens.IsPackageName(string(pkg.Name)) {
 		b.Diag().Errorf(errors.ErrorInvalidPackageName.At(pkg.Doc))
 	}
Permit package name hyphens in one more place

...missed one.