Ticket #2522 (new feature request)

Opened 5 years ago

Last modified 4 months ago

Warning for missing export lists

Reported by: tim Owned by:
Priority: lowest Milestone: 7.6.2
Component: Compiler Version: 6.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

It occurred to me that it would be nice to have a warning for modules that lack an export list. Obviously not everybody prefers to write export lists for all their modules, but that's why it would be an optional warning. (It would also be handy to use in conjunction with -fwarn-unused-binds.)

If there is already such a flag, then the task is to add it to the users' guide, since I don't see it there :-)

Change History

Changed 5 years ago by igloo

  • difficulty set to Unknown
  • milestone set to 6.12 branch

I guess we wouldn't warn about

module Foo (module Foo) where ...

?

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

Changed 3 years ago by igloo

  • milestone changed from 6.12 branch to 6.12.3

Changed 3 years ago by igloo

  • priority changed from normal to low
  • milestone changed from 6.12.3 to 6.14.1

Changed 2 years ago by igloo

  • milestone changed from 7.0.1 to 7.0.2

Changed 2 years ago by igloo

  • milestone changed from 7.0.2 to 7.2.1

Changed 20 months ago by igloo

  • milestone changed from 7.2.1 to 7.4.1

Changed 16 months ago by igloo

  • priority changed from low to lowest
  • milestone changed from 7.4.1 to 7.6.1

Changed 8 months ago by igloo

  • milestone changed from 7.6.1 to 7.6.2

Changed 4 months ago by morabbin

  • failure set to None/Unknown

Methinks this sort of warning is better suited for the likes of hlint

Note: See TracTickets for help on using tickets.