Skip to content

Qualified names in import specifications

GHC accepts qualified names in import specifications, e.g.

module Main where
import Foo (Bar.bar)

I don't see the point of this, nor is it documented anywhere. I propose that either a) this (mis)feature is removed, or b) this feature is documented and tied to a registered extension that can be enabled or disabled as seen fit.

Trac metadata
Trac field Value
Version 6.12.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC niklas.broberg@gmail.com
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information