[GHC] #1577: Give TH the ability to get the info for a class name

GHC trac at galois.com
Thu Aug 2 03:41:13 EDT 2007


#1577: Give TH the ability to get the info for a class name
----------------------------------+-----------------------------------------
    Reporter:  iampure at gmail.com  |        Owner:         
        Type:  feature request    |       Status:  new    
    Priority:  normal             |    Milestone:         
   Component:  Template Haskell   |      Version:  6.6.1  
    Severity:  normal             |   Resolution:         
    Keywords:                     |   Difficulty:  Unknown
          Os:  Unknown            |     Testcase:         
Architecture:  Unknown            |  
----------------------------------+-----------------------------------------
Comment (by simonpj):

 Well if you reify a class `Name` you get a `ClassI Dec` (see
 `Language.Haskell.TH.Syntax`).  The `Dec` gives the class signature, and
 you can then reify the `Names` you find inside.

 So I'm not sure just what you want that isn't provided.

 I agree that it's possible that more features in TH would lead to more
 users, but it's hard to tell just ''which'' features!  There is a lot that
 ''could'' be done.  It'd be a great project for someone to take on.

 Meanwhile I'll try to (continue to) respond to concrete suggestions.

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1577>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list