[haddock] #137: Cannot place -- ^ comment after GADT constructor

haddock haddock at projects.haskell.org
Thu Apr 29 19:11:37 EDT 2010


#137: Cannot place -- ^ comment after GADT constructor
-------------------+--------------------------------------------------------
Reporter:  nr      |       Owner:       
    Type:  defect  |      Status:  new  
Priority:  major   |   Milestone:  2.7.0
 Version:  2.6.0   |    Keywords:       
-------------------+--------------------------------------------------------
 This might be the same problem as ticket #43; I couldn't quite tell.
 The offending code is
 {{{
 {-# LANGUAGE GADTs #-}
 module Haddock
 where

 data Lit a where
   I :: Int  -> Lit Int  -- ^ an integer
   B :: Bool -> Lit Bool -- ^ a Boolean
 }}}
 And Haddock reports
 {{{
 Haddock.hs:6:24: parse error on input `-- ^ an integer'
 }}}

-- 
Ticket URL: <http://trac.haskell.org/haddock/ticket/137>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool


More information about the Haddock mailing list