#5406: Template Haskell: Reification of type family instances
---------------------------------+------------------------------------------
    Reporter:  reinerp           |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:              
   Component:  Template Haskell  |      Version:  7.0.4       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonpj):

 Sorry I should have been clearer.  The `Dec` returned by `reifyInstances`
 would always
  * Be a suitable instance `Dec`, depending on the `Name` you are reifying
 (eg an `InstanceD` if you reify a class)
  * Have an empty list of sub-`Dec`s. For a class, the `[Dec]` inside the
 `InstanceD` would be empty.

 Using a `Dec` for this purpose is just convenience.  One could invent a
 new data type specifically for instances -- but `Dec` is very convenient!

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to