
2009/2/6 Alistair Bayley
I have this test case for Haddock (2.3.0):
--------------------------------------------------
| Module : Test.Haddock Copyright : (c) 2009 Alistair Bayley License : BSD-style Maintainer : alistair@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