10

When I'm uploading a module to Hackage, I get the following error message:

"Exposed modules use unallocated top-level names"

I am declaring the module as an exposed module in the .cabal file. Is there anything else I should be doing?

Ben Hamner
  • 4,575
  • 4
  • 30
  • 50
  • 4
    Ignore it - the convention for hierarchical names is valuable for the standard libraries and libraries that want to be "canonical" but onerous otherwise. – stephen tetley Jun 20 '12 at 17:02

1 Answers1

11

It seems hackage enforces that you use one of the common top-level names in the hierarchy for your modules, e.g. Data, Control, System.

So you can't name your banana catapult library Banana.Catapult, but rather System.Banana.Catapult or wherever you think your lib would fit.

jberryman
  • 16,334
  • 5
  • 42
  • 83