[Haskell-cafe] Haddock multiple definitions

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Fri Aug 16 20:29:20 CEST 2013


On 16/08/13 11:08, Roman Cheplyaka wrote:
> * Mateusz Kowalczyk <fuuzetsu at fuuzetsu.co.uk> [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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x2ADA9A97.asc
Type: application/pgp-keys
Size: 5619 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130816/6d86f539/attachment.key>


More information about the Haskell-Cafe mailing list