[GHC] #12542: Unexpected failure.. (bug?)

GHC ghc-devs at haskell.org
Fri Aug 26 18:51:22 UTC 2016


#12542: Unexpected failure.. (bug?)
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 It may be fine as it is, but my intuition says I should be able to change

 {{{#!hs
   where
     a = xx
     b = yy
 }}}

 to

 {{{#!hs
   where
     (a, b) = (xx, yy)
 }}}

 Does it make any sense to treat/desugar `(a, b) = (xx, yy)` bindings as `x
 = xx; b = yy` or does that open a separate can of worms?

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


More information about the ghc-tickets mailing list