Haddock 2.0.0.0 Bug: Doesn't Like {;}-Style Code

Ashley Yakeley <[email protected]> Thu, 08 May 2008 03:00:35 -0700
Newsgroups gmane.comp.lang.haskell.haskelldoc
Message-ID <[email protected]>
Try running haddock on this:

module HaddockBug where
{
-- |The 'square' function squares an integer.
square :: Int -> Int;
square x = x * x;
}

$ haddock -B /usr/lib/ghc-6.8.2/ HaddockBug.hs

HaddockBug.hs:4:0: parse error on input `square'
haddock: Failed to load all needed modules

It works fine if you remove the haddock comment...

-- 
Ashley Yakeley
Seattle, WA