[GHC] #11432: Cannot export operator newtype

GHC ghc-devs at haskell.org
Tue Feb 9 11:55:44 UTC 2016


#11432: Cannot export operator newtype
-------------------------------------+-------------------------------------
        Reporter:  phadej            |                Owner:  skvadrik
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  8.0.1-rc1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1888
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by skvadrik):

 I agree that basing compilation decisions on subtle syntax changes is bad,
 but error message
 {{{
 error: Not in scope: ‘%%’
 }}}
 which appears suddenly after GHC upgrade is obscure. I think it should at
 least suggest the cause of error and the way to fix it. Perhaps something
 like this (don't hesitate to suggest a better wording):
 {{{
 error: Not in scope: ‘%%’
     Note: if '%%' is a type constructor, add 'type' keyword: 'type (%%)'
     (requires extension TypeOperators)
 }}}

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


More information about the ghc-tickets mailing list