[Haskell-cafe] Re: haddock-2.3.0 literate comments discarded from .lhs input

David Waern david.waern at gmail.com
Fri Feb 6 05:18:41 EST 2009


2009/2/6 Alistair Bayley <alistair at abayley.org>:
> I have this test case for Haddock (2.3.0):
>
> --------------------------------------------------
>
> |
> Module      :  Test.Haddock
> Copyright   :  (c) 2009 Alistair Bayley
> License     :  BSD-style
> Maintainer  :  alistair at abayley.org
> Stability   :  stable
> Portability :  portable
>
> Test case for Haddock.
>
>
>> module Test.Haddock
>>   (
>>   -- $named_block
>>   Fail(..)
>>   )
>> where
>> data Fail = Fail | Succeed
>
> $named_block
>
> This is some hadock documentation.
>
> --------------------------------------------------
>
> This fails with:
>
> [1 of 1] Compiling Test.Fail        ( Test\Fail.hs, Test\Fail.o )
>
> Test\Fail.hs:11:26:
>    Can't make a derived instance of `Typeable Fail'
>      (You need -XDeriveDataTypeable to derive an instance for this class)
>    In the data type declaration for `Fail'

Are you processing the above module but it is called Test.Fail in
reality? Have you stripped out a deriving statement from the example
above? I'm very confused by this message :)

David


More information about the Haskell-Cafe mailing list