[GHC] #9117: Coercible constraint solver misses one

GHC ghc-devs at haskell.org
Mon May 19 18:29:08 UTC 2014


#9117: Coercible constraint solver misses one
-------------------------------------+------------------------------------
        Reporter:  goldfire          |            Owner:  nomeata
            Type:  bug               |           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 nomeata):

 Replying to [comment:13 goldfire]:
 > Yes, but the library-writer could just use a newtype to get this
 functionality. For example, if the writer of `Set` wants coercions
 internally, they use `SetInternal` with no role annotations and then `Set`
 with a role annotation. It's a little bit of (compile-time-only) overhead,
 but it should be usable.

 Ah, right. I think we had this discussion before, and you told me that
 back then :-)

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


More information about the ghc-tickets mailing list