[GHC] #8560: Derive some generic representation for GADTs

GHC ghc-devs at haskell.org
Mon Nov 24 07:19:07 UTC 2014


#8560: Derive some generic representation for GADTs
-------------------------------------+-------------------------------------
              Reporter:  carter      |            Owner:
                  Type:  feature     |           Status:  new
  request                            |        Milestone:  ⊥
              Priority:  normal      |          Version:  7.7
             Component:  Compiler    |         Keywords:
  (Type checker)                     |     Architecture:  Unknown/Multiple
            Resolution:              |       Difficulty:  Rocket Science
      Operating System:              |       Blocked By:
  Unknown/Multiple                   |  Related Tickets:
       Type of failure:              |
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by dreixel):

 I did look into this before (Chapter 10 of my PhD thesis
 http://dreixel.net/index.php?content=thesis), and there is a reference
 implementation for the instant-generics package
 (https://hackage.haskell.org/package/instant-generics). It could be ported
 to GHC.Generics, but I never found this approach very elegant.

 I'm still hoping to be able to look into this again at some point in the
 future, though.

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


More information about the ghc-tickets mailing list