External Publication
Visit Post

Why aren't modules prefixed their package name?

Haskell Community [Unofficial] May 1, 2026
Source

superstar64:

For some additional context, we where discussing this transitive package dependencies. If package A, depends on B and B depends on C, should A be allowed to import C’s modules without directly depending on C. I’m inclined to say yes because B’s types may not make sense without C’s types.

In that case, I think module B should reexport the modules of package C, allowing for A to not depend on C. Also, many packages do use the name of their project/something related as a root. e.g. Dataframe,units,dimensional.

These transitive dependencies would cause problems if module names where not prefixed with their package name.

What problems?

Discussion in the ATmosphere

Loading comments...