[GHC] #9429: Alternative to type family Any

GHC ghc-devs at haskell.org
Sun Aug 17 21:26:15 UTC 2014


#9429: Alternative to type family Any
-------------------------------------+-------------------------------------
              Reporter:  mboes       |            Owner:
                  Type:  feature     |           Status:  new
  request                            |        Milestone:
              Priority:  normal      |          Version:  7.9
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:              |  Related Tickets:  9097, 9380
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I'm sorry, but I still don't understand the problem.  Why exactly do you
 need a `Typeable` instance for types involving `Any`?  In the example you
 give in "Context", you could perfectly well declare your own data type
 `MyAny` and use it instead of `Any`.  Can you give a more complete example
 that shows why it's essential to have a `Typeable` instance for GHC's
 `Any`?

 Thanks

 Simon

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


More information about the ghc-tickets mailing list