[Haskell-cafe] Re: ANNOUNCE: haskell-src-exts 0.4.4

ChrisK haskell at list.mightyreason.com
Wed Dec 10 12:48:38 EST 2008


Ross Paterson wrote:
> On Wed, Dec 10, 2008 at 05:34:16PM +0000, ChrisK wrote:
>> Is there anyway to track down and fix why haskell-src-exts-0.4.4.1 still gets
>>
>> "haddock: parse error in doc string"
>>
>> when I try to get cabal to haddock the package?
> 
> Line numbers would be handy.
> 
> In this case, the problem is the "Original:" line in some of the module
> headers.

Indeed, I just found that.  I wonder where in the universe this is documented. 
Oh well.  I also had to change -- $x and -- $( comments.  A "darcs diff -u" 
patch is attached.

Cheers,
   Chris

-------------- next part --------------
diff -rN -u old-haskell-src-exts/Language/Haskell/Exts/Build.hs new-haskell-src-exts/Language/Haskell/Exts/Build.hs
--- old-haskell-src-exts/Language/Haskell/Exts/Build.hs	2008-12-10 17:46:47.000000000 +0000
+++ new-haskell-src-exts/Language/Haskell/Exts/Build.hs	2008-12-10 17:46:47.000000000 +0000
@@ -1,7 +1,6 @@
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Language.Haskell.Exts.Build
--- Original    :  Language.Haskell.Syntax
 -- Copyright   :  (c) The GHC Team, 1997-2000,
 --                (c) Niklas Broberg 2004
 -- License     :  BSD-style (see the file LICENSE.txt)
diff -rN -u old-haskell-src-exts/Language/Haskell/Exts/Lexer.hs new-haskell-src-exts/Language/Haskell/Exts/Lexer.hs
--- old-haskell-src-exts/Language/Haskell/Exts/Lexer.hs	2008-12-10 17:46:47.000000000 +0000
+++ new-haskell-src-exts/Language/Haskell/Exts/Lexer.hs	2008-12-10 17:46:47.000000000 +0000
@@ -2,7 +2,6 @@
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Language.Haskell.Exts.Lexer
--- Original    :  Language.Haskell.Lexer
 -- Copyright   :  (c) The GHC Team, 1997-2000
 --        (c) Niklas Broberg, 2004
 -- License     :  BSD-style (see the file LICENSE.txt)
@@ -83,8 +82,8 @@
         | THDecQuote        -- [d|
         | THTypQuote        -- [t|         
         | THCloseQuote      -- |]
-        | THIdEscape (String)   -- $x
-        | THParenEscape     -- $( 
+        | THIdEscape (String)   -- dollar x
+        | THParenEscape     -- dollar ( 
         | THVarQuote        -- 'x (but without the x)
         | THTyQuote         -- ''T (but without the T)
 
diff -rN -u old-haskell-src-exts/Language/Haskell/Exts/ParseMonad.hs new-haskell-src-exts/Language/Haskell/Exts/ParseMonad.hs
--- old-haskell-src-exts/Language/Haskell/Exts/ParseMonad.hs	2008-12-10 17:46:47.000000000 +0000
+++ new-haskell-src-exts/Language/Haskell/Exts/ParseMonad.hs	2008-12-10 17:46:47.000000000 +0000
@@ -2,7 +2,6 @@
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Language.Haskell.Exts.ParseMonad
--- Original    :  Language.Haskell.ParseMonad
 -- Copyright   :  (c) The GHC Team, 1997-2000
 -- License     :  BSD-style (see the file libraries/base/LICENSE)
 -- 
diff -rN -u old-haskell-src-exts/Language/Haskell/Exts/ParseUtils.hs new-haskell-src-exts/Language/Haskell/Exts/ParseUtils.hs
--- old-haskell-src-exts/Language/Haskell/Exts/ParseUtils.hs	2008-12-10 17:46:47.000000000 +0000
+++ new-haskell-src-exts/Language/Haskell/Exts/ParseUtils.hs	2008-12-10 17:46:47.000000000 +0000
@@ -2,7 +2,6 @@
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Language.Haskell.Exts.ParseUtils
--- Original    :  Language.Haskell.ParseUtils
 -- Copyright   :  (c) Niklas Broberg 2004,
 --        (c) The GHC Team, 1997-2000
 -- License     :  BSD-style (see the file LICENSE.txt)
diff -rN -u old-haskell-src-exts/Language/Haskell/Exts/Parser.ly new-haskell-src-exts/Language/Haskell/Exts/Parser.ly
--- old-haskell-src-exts/Language/Haskell/Exts/Parser.ly	2008-12-10 17:46:47.000000000 +0000
+++ new-haskell-src-exts/Language/Haskell/Exts/Parser.ly	2008-12-10 17:46:47.000000000 +0000
@@ -2,7 +2,6 @@
 > -----------------------------------------------------------------------------
 > -- |
 > -- Module      :  Language.Haskell.Exts.Parser
-> -- Original    :  Language.Haskell.Parser
 > -- Copyright   :  (c) Niklas Broberg 2004,
 > --                Original (c) Simon Marlow, Sven Panne 1997-2000
 > -- License     :  BSD-style (see the file LICENSE.txt)
diff -rN -u old-haskell-src-exts/Language/Haskell/Exts/Pretty.hs new-haskell-src-exts/Language/Haskell/Exts/Pretty.hs
--- old-haskell-src-exts/Language/Haskell/Exts/Pretty.hs	2008-12-10 17:46:47.000000000 +0000
+++ new-haskell-src-exts/Language/Haskell/Exts/Pretty.hs	2008-12-10 17:46:47.000000000 +0000
@@ -2,7 +2,6 @@
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Language.Haskell.Exts.Pretty
--- Original    :  Language.Haskell.Pretty
 -- Copyright   :  (c) Niklas Broberg 2004,
 --                (c) The GHC Team, Noel Winstanley 1997-2000
 -- License     :  BSD-style (see the file LICENSE.txt)
diff -rN -u old-haskell-src-exts/Language/Haskell/Exts/Syntax.hs new-haskell-src-exts/Language/Haskell/Exts/Syntax.hs
--- old-haskell-src-exts/Language/Haskell/Exts/Syntax.hs	2008-12-10 17:46:47.000000000 +0000
+++ new-haskell-src-exts/Language/Haskell/Exts/Syntax.hs	2008-12-10 17:46:47.000000000 +0000
@@ -2,7 +2,6 @@
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Language.Haskell.Exts.Syntax
--- Original    :  Language.Haskell.Syntax
 -- Copyright   :  (c) Niklas Broberg 2004,
 --                (c) The GHC Team, 1997-2000
 -- License     :  BSD-style (see the file LICENSE.txt)


More information about the Haskell-Cafe mailing list