[GHC] #9889: Pattern synonym does not work at top level

GHC ghc-devs at haskell.org
Tue Dec 16 02:51:20 UTC 2014


#9889: Pattern synonym does not work at top level
-------------------------------------+-------------------------------------
       Reporter:  goldfire           |                   Owner:
           Type:  bug                |                  Status:  new
       Priority:  normal             |               Milestone:
      Component:  Compiler           |                 Version:  7.9
       Keywords:  PatternSynonyms    |        Operating System:
   Architecture:  Unknown/Multiple   |  Unknown/Multiple
     Difficulty:  Unknown            |         Type of failure:
     Blocked By:                     |  None/Unknown
Related Tickets:                     |               Test Case:
                                     |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------
 When I say

 {{{
 pattern Id x = x

 Id x = True
 }}}

 I get

 {{{
     Not in scope: data constructor ‘Id’
 }}}

 This happens with both 7.8.3 and HEAD.

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


More information about the ghc-tickets mailing list