[GHC] #10756: Allow users to indicate inaccessible patterns

GHC ghc-devs at haskell.org
Mon Aug 24 16:20:04 UTC 2015


#10756: Allow users to indicate inaccessible patterns
-------------------------------------+-------------------------------------
        Reporter:  edsko             |                   Owner:
            Type:  feature request   |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.2
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by YitzGale):

 Replying to [comment:11 goldfire]:

 I agree. I anyway wasn't thinking of turning everything into a pattern
 binding. Other than type aliases and record syntax, the LHS of = is either
 a function binding or a pattern binding, both of which include a pattern
 expression. In both cases `impossible` following the pattern expression
 makes sense, provided that the pattern expression is non-empty.

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


More information about the ghc-tickets mailing list