Why aren't modules prefixed their package name?
Haskell Community [Unofficial]
May 1, 2026
superstar64:
For some additional context, we where discussing this transitive package dependencies. If package
A, depends onBandBdepends onC, shouldAbe allowed to importC’s modules without directly depending onC. I’m inclined to say yes becauseB’s types may not make sense withoutC’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