[commit: ghc] master: Fix comment that confused Haddock (d7c2b01)

git at git.haskell.org git at git.haskell.org
Thu Jul 30 16:52:15 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/d7c2b01a783429f0706b9714e15576c836025247/ghc

>---------------------------------------------------------------

commit d7c2b01a783429f0706b9714e15576c836025247
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Jul 30 17:52:59 2015 +0100

    Fix comment that confused Haddock
    
    I wish Haddock did not fall over when some random non-Haddock comment
    contains *'s.  I got
    
      compiler/rename/RnBinds.hs:732:8: error:
        parse error on input ‘-- *are not* in scope in the SPECIALISE instance pramas; e.g.’
    
    This patch says '-- /are not/ in scope...' to pacify Haddock.


>---------------------------------------------------------------

d7c2b01a783429f0706b9714e15576c836025247
 compiler/rename/RnBinds.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler/rename/RnBinds.hs b/compiler/rename/RnBinds.hs
index ceef7c9a..c84a598 100644
--- a/compiler/rename/RnBinds.hs
+++ b/compiler/rename/RnBinds.hs
@@ -728,8 +728,8 @@ rnMethodBinds is_cls_decl cls ktv_names binds sigs
        ; binds' <- foldrBagM (rnMethodBindLHS is_cls_decl cls) emptyBag binds
 
        -- Rename the pragmas and signatures
-       -- Annoyingly the type variables *are* in scope for signatures, but
-       -- *are not* in scope in the SPECIALISE instance pramas; e.g.
+       -- Annoyingly the type variables /are/ in scope for signatures, but
+       -- /are not/ in scope in the SPECIALISE instance pramas; e.g.
        --    instance Eq a => Eq (T a) where
        --       (==) :: a -> a -> a
        --       {-# SPECIALISE instance Eq a => Eq (T [a]) #-}



More information about the ghc-commits mailing list