From f76d6fe7889617f1462a2c21ea75876a336c54c9 Mon Sep 17 00:00:00 2001 From: wygulmage Date: Tue, 12 Nov 2019 13:46:26 -0500 Subject: [PATCH] Fix typo in comma-first export list As far as I can tell, putting a comma before the first item in an export list ('module M ( , a, b, c) where') is not legal Haskell. And Haddock chokes on headings before the opening parenthesis of the export list. --- doc/markup.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/markup.rst b/doc/markup.rst index 56238855cc..fbc9496310 100644 --- a/doc/markup.rst +++ b/doc/markup.rst @@ -509,11 +509,11 @@ If you use section headings, then Haddock will generate a table of contents at the top of the module documentation for you. The alternative style of placing the commas at the beginning of each -line is also supported. e.g.: :: +line is not supported, but you can get close: :: module Foo ( -- * Classes - , C(..) + C(..) -- * Types -- ** A data type , T