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

GHC ghc-devs at haskell.org
Fri Aug 21 12:47:46 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 goldfire):

 Are you then suggesting that

 {{{
 -- this is OK:
 impossible :: Int

 -- this is OK:
 impossible = 42

 -- this is wrong:
 Just impossible = Just 42
 }}}

 ? This would indeed bind `impossible` and then it would make sense to use
 the word in expressions. But I find it strange that the pattern
 `impossible` works at top-level but not elsewhere... it's just another
 weird wrinkle in a language that already has too many of them.

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


More information about the ghc-tickets mailing list