
#11011: Add type-indexed type representations (`TypeRep a`) -------------------------------------+------------------------------------- Reporter: bjmprice | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by adamgundry): * cc: adamgundry (added) Comment: Ben, perhaps I'm missing something (your wiki page doesn't appear to define `mkTyCon` or `mkTRApp`), but I don't see why you can't write `getTypeRepX` without resorting to `unsafeCoerce`. If `TyCon` is unindexed then the first case should just work without it, and in the second case, isn't it possible to do a runtime check that the kinds of `rep_f` and `rep_x` agree? Apologies if I've overlooked something obvious by being late to the party. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11011#comment:30 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler