[GHC] #2522: Warning for missing export lists

GHC ghc-devs at haskell.org
Sun Dec 7 10:27:00 UTC 2014


#2522: Warning for missing export lists
-------------------------------------+-------------------------------------
              Reporter:  tim         |            Owner:
                  Type:  feature     |           Status:  new
  request                            |        Milestone:  7.10.1
              Priority:  lowest      |          Version:  6.8.3
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:              |  Related Tickets:
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by NeilMitchell):

 Yes, HLint could do that. The Standard Chartered Haskell compiler already
 warns about missing export lists, and then if you really want to omit the
 export list you use the module export syntax Ian suggested above. The
 warning also emits what the export list should be to keep exporting
 everything, which is a handy feature.

 I suspect this fits better as a GHC warning (it seems sufficiently like
 the other existing warnings), but I'd certainly accept an HLint patch, and
 then perhaps remove it if it was ever added to GHC. If GHC is likely to
 punt on this warning for the foreseeable future, please raise an HLint
 ticket.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/2522#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list