Skip to content

Require modules to be imported even if their members are being referenced fully qualified #1511

Description

@garyb

(From a discussion on IRC).

The motivation is for enabling better tooling, and with some additional changes (require imports at the top, disallow multiple modules per file) potential faster recompilation times.

One thing that would need figuring out: how would it actually work, since we're dropping the qualified modifier, so it wouldn't be import qualified X.Y as it is in Haskell. Change import X.Y to not implicitly import anything and require import X.Y (..) as mentioned in #1509? Require import X.Y as X.Y?

The three of us who talked about it (@paf31, @natefaubion) don't feel particularly strongly about it, but the pros do seem to slightly outweigh the cons, so, discuss:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions