On 16/08/13 11:08, Roman Cheplyaka wrote: > * Mateusz Kowalczyk <[email protected]> [2013-08-16 08:16:35+0100] >> In the future, please try with more recent version of GHC. >> >> This is no longer a parse error with HEAD or 7.6.3. > > Uhm, actually there is, with 7.6.3. > > % cat haddock.hs > -- Main > > -- | Blah blah blah > (x, y, z) = (1, 2, 3) > > % haddock haddock.hs > > haddock.hs:4:1: parse error on input `(' > > % haddock --version > Haddock version 2.13.2, (c) Simon Marlow 2006 > Ported to use the GHC API by David Waern 2006-2008 > > It's great that it's fixed in HEAD. > > Roman > Strange.
/tmp $ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
/tmp $ cat Test.hs
module Main (main, y, x) where
-- | this is a main 123 function
main :: IO ()
main = return ()
-- | Haddock likes 'y' and 'x', 'foobar'
(x, y) = (1, 2)
/tmp $ ghc Test.hs
[1 of 1] Compiling Main ( Test.hs, Test.o )
Linking Test ...
/tmp $ haddock --version
Haddock version 2.13.2, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
/tmp $ haddock Test.hs --html
Haddock coverage:
Warning: Couldn't find .haddock for export Main.y
50% ( 2 / 4) in 'Main'
Warning: Main: could not find link destinations for:
GHC.Types.IO GHC.Integer.Type.Integer
/tmp $
Well, it's a high possibility that my Haddock version isn't the stock
one that comes with 7.6.3. In any case, I'm glad that you say it's
fixed in HEAD. Thanks for checking.
--
Mateusz K.
0x2ADA9A97.asc
Description: application/pgp-keys
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
