[GHC] #12975: Suggested type signature for a pattern synonym causes program to fail to type check

GHC ghc-devs at haskell.org
Wed Dec 14 15:15:59 UTC 2016


#12975: Suggested type signature for a pattern synonym causes program to fail to
type check
-------------------------------------+-------------------------------------
        Reporter:  ocharles          |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.1
  checker)                           |             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 ocharles):

 If I only supply one context, which context am I supplying? The provided
 one, or the required one? That is, are you suggesting `pattern Cast :: ()
 => Typeable b => ...` or `pattern Cast :: Typeable b => () => ...`?

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


More information about the ghc-tickets mailing list