#5467: Template Haskell: support for Haddock comments
---------------------------------+------------------------------------------
    Reporter:  reinerp           |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:              
   Component:  Template Haskell  |      Version:  7.2.1       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonpj):

 I think it'd be much cleaner if the Doc stuff was ''only'' in a separate
 constructor of `Dec`. How about
 {{{
 data Dec = ... | DocD Name Doc
 data Doc = SimpleDoc String | FunDoc [String]
 }}}
 where `FunDoc` deals with the function argument/result case.

 There are bigger issues here.  If interface files routinely contained all
 the Haddock markup, the Haddock could just gobble up those interface files
 rather than generating its own (which is what happens now).  Or
 alterantively, reify could consult Haddock's interface files.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5467#comment:2>
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