[GHC] #2526: Warn about missing signatures only for exported functions (was: warn about missing signatures only for exported functions)

GHC ghc-devs at haskell.org
Sun Nov 2 11:51:45 UTC 2014


#2526: Warn about missing signatures only for exported functions
-------------------------------------+-------------------------------------
              Reporter:              |            Owner:
  fergushenderson                    |           Status:  new
                  Type:  feature     |        Milestone:  7.10.1
  request                            |          Version:  6.8.3
              Priority:  lowest      |         Keywords:
             Component:  Compiler    |     Architecture:  Unknown/Multiple
            Resolution:              |       Difficulty:  Unknown
      Operating System:              |       Blocked By:
  Unknown/Multiple                   |  Related Tickets:
       Type of failure:              |
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
Description changed by thomie:

Old description:

> The -fno-warn-missing-signatures option results in warnings if signatures
> are not declared for any top-level functions.
>
> Many Haskell users prefer to declare type signatures only for exported
> functions, which are part of the module's interface, not for all
> functions.  It would be nice to have an option that issued warnings iff
> any exported functions lacked explicit signatures.

New description:

 The -fwarn-missing-signatures option results in warnings if signatures are
 not declared for any top-level functions.

 Many Haskell users prefer to declare type signatures only for exported
 functions, which are part of the module's interface, not for all
 functions.  It would be nice to have an option that issued warnings iff
 any exported functions lacked explicit signatures.

--

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


More information about the ghc-tickets mailing list