It is allowed. The import mechanism is very flexible, sometimes surprising.
You can, for example, import a module under different names:
import qualified M as A
import qualified M as B
After that, the two A.xand B.xwill invoke M.x.
Perhaps more surprisingly, you can also import two modules under the same name.
import qualified M as A
import qualified N as A
A.x M.x, N.x. , .
, , , .