Re: #15857: Need for better warnings arising from StarIsType extension

"GHC" <[email protected]>
Newsgroups gmane.comp.lang.haskell.glasgow.bugs
Message-ID <[email protected]>
#15857: Need for better warnings arising from StarIsType extension
-------------------------------------+-------------------------------------
        Reporter:  jrp               |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Compiler          |              Version:  8.6.1
      Resolution:                    |             Keywords:  StarIsType
                                     |  NoStarIsType
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Poor/confusing    |  Unknown/Multiple
  error message                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by int-index):

 I designed `-Wstar-binder` specifically for this purpose, and it is
 enabled by default.

 {{{
 Prelude> :set -XTypeOperators
 Prelude> type (*) = (,)

 <interactive>:2:7: warning: [-Wstar-binder]
     Found binding occurrence of ‘*’ yet StarIsType is enabled.
     NB. To use (or export) this operator in modules with StarIsType,
         including the definition module, you must qualify it.
 }}}

 Are you not seeing it for some reason or do you think the wording needs
 improvement?

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15857#comment:2>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.