[GHC] #11212: Should be more liberal parsing pattern synonyms with view patterns

GHC ghc-devs at haskell.org
Sat Jan 23 22:41:57 UTC 2016


#11212: Should be more liberal parsing pattern synonyms with view patterns
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
  (Parser)                           |             Keywords:
      Resolution:                    |  PatternSynonyms
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 thomie):

 With `-XMultiWayIf`, `if | Just True <- Just True -> True` is a valid
 expression. It looks similar to the example in this ticket: two arrows in
 opposite directions, no parenthesis.

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


More information about the ghc-tickets mailing list