[GHC] #9183: GHC shouldn't expand constraint synonyms

GHC ghc-devs at haskell.org
Wed Jun 11 13:50:14 UTC 2014


#9183: GHC shouldn't expand constraint synonyms
-------------------------------------+------------------------------------
        Reporter:  Feuerbach         |            Owner:
            Type:  feature request   |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.8.2
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by Feuerbach):

 Just tested it — doesn't seem to work.

 {{{
 {-# LANGUAGE FlexibleInstances, UndecidableInstances #-}

 class Show a => MyC a
 instance Show a => MyC a

 foo :: MyC a => a -> String
 foo = show
 }}}

 :t foo shows

 {{{
 foo :: Show a => a -> String
 }}}

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


More information about the ghc-tickets mailing list