[GHC] #11751: Parse error with case in where

GHC ghc-devs at haskell.org
Fri Mar 25 04:31:47 UTC 2016


#11751: Parse error with case in where
----------------------------------------+---------------------------------
           Reporter:  samuela           |             Owner:
               Type:  bug               |            Status:  new
           Priority:  normal            |         Milestone:
          Component:  Compiler          |           Version:  7.10.2
           Keywords:                    |  Operating System:  MacOS X
       Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
          Test Case:                    |        Blocked By:
           Blocking:                    |   Related Tickets:
Differential Rev(s):                    |         Wiki Page:
----------------------------------------+---------------------------------
 The following code produces a peculiar parse error:

 {{{#!hs
 subtype = 0
   where (x, y) = case (1, 2) of
     (a, b) -> (3, 4)
 }}}

 `parse_error.hs:3:5: parse error on input ‘(’`

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


More information about the ghc-tickets mailing list