[Haddock] [haddock] #168: Hoogle backend attaches [incoherent] to instance documentation
    haddock 
    haddock at projects.haskell.org
       
    Tue Sep 10 10:19:42 BST 2013
    
    
  
#168: Hoogle backend attaches [incoherent] to instance documentation
-------------------------+--------------------------------------------------
Reporter:  NeilMitchell  |        Owner:     
    Type:  defect        |       Status:  new
Priority:  major         |    Milestone:     
 Version:                |   Resolution:     
Keywords:                |  
-------------------------+--------------------------------------------------
Comment(by NeilMitchell):
 {{{
 {-# LANGUAGE IncoherentInstances #-}
 module Haddock where
 instance Num ()
 }}}
 Produces:
 {{{
 @package main
 module Haddock
 instance [incoherent] Num ()
 }}}
 I expect the {{{[incoherent]}}} not to be there, since it isn't legal
 Haskell syntax. I suspect the {{{IncoherentInstances}}} pragma causes the
 instance to be annotated by GHC (fine), and then the pretty-printer for
 Hoogle uses the GHC pretty-printer which includes the annotation in the
 output (incorrect).
-- 
Ticket URL: <http://trac.haskell.org/haddock/ticket/168#comment:5>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool
    
    
More information about the Haddock
mailing list