[GHC] #11634: Bang patterns bind... unexpectedly. Deserves loud warning

GHC ghc-devs at haskell.org
Wed Feb 24 13:11:06 UTC 2016


#11634: Bang patterns bind... unexpectedly. Deserves loud warning
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Documentation     |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I think it would be better to make bang bind more tightly so that it
 behaves the way you expect.  We go to some trouble to make
 {{{
 f !x y = e
 }}}
 mean
 {{{
 f (!x) y = e
 }}}
 so bang binds pretty tightly there.

 This is a purely syntactic matter.  Would anyone like to tackle it?

 Simon

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


More information about the ghc-tickets mailing list