[patch] Implement GADT records in HTML backend

David Waern david.waern at gmail.com
Tue Jul 21 17:27:37 EDT 2009


2009/7/20 Isaac Dupree <id at isaac.cedarswampstudios.org>:
> here's a pretty simple patch to remedy that deficiency in Haddock, it's
> independent of all my other patches.  Review?  I used this source
> declaration for testing:
>
> -- | h1
> data H1 a b where
>  C1 :: H1 a b
>  C2 :: Ord a => [a] -> H1 a a
>  C3 { field :: Int -- ^ hello docs
>     } :: H1 Int Int
>
> -Isaac

Thanks! Looks good.

BTW, the testing declaration could be added to the test suite. The
test suite should be very useful to your project, especially if you
add tests when developing new functionality. Try it out! It's in the
tests/ directory of the repo. There should be a small README file
there with some instructions.

David



More information about the Haddock mailing list