[GHC] #10873: Bad error message for incorrect pattern synonym signature

GHC ghc-devs at haskell.org
Sun Dec 27 10:23:46 UTC 2015


#10873: Bad error message for incorrect pattern synonym signature
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler (Type    |              Version:  7.10.2
  checker)                           |
      Resolution:                    |             Keywords:  newcomer
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 mpickering):

 The error should now be triggered by switching around the constraints.

 {{{
 {-# LANGUAGE PatternSynonyms #-}

 pattern Pat :: () => Show a => a -> Maybe a
 pattern Pat a = Just a
 }}}

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


More information about the ghc-tickets mailing list