[Haddock] [haddock] #165: Parse error on comment before opening brace of record

haddock haddock at projects.haskell.org
Sun Dec 12 14:06:46 EST 2010


#165: Parse error on comment before opening brace of record
------------------------+---------------------------------------------------
Reporter:  Mathnerd314  |       Owner:       
    Type:  defect       |      Status:  new  
Priority:  minor        |   Milestone:  2.9.0
 Version:  2.8.1        |    Keywords:       
------------------------+---------------------------------------------------
 This gives "parse error on input `{'":
 {{{
 data Test =
     Test
         -- | A value
         { a :: Int
         -- | Another value
         , b :: Int
         }
 }}}
 This does not:

 {{{
 data Test =
     Test
         { -- | A value
           a :: Int
         , -- | Another value
           b :: Int
         }
 }}}
 The first should parse and give the same result as the second.

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


More information about the Haddock mailing list