[commit: ghc] master: Remove obsolete comment about (!!) (9d71315)

git at git.haskell.org git at git.haskell.org
Fri Sep 12 21:14:19 UTC 2014


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

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

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

commit 9d713150d87de07e132c1211eec956e0ae69aa7f
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Fri Sep 12 23:13:07 2014 +0200

    Remove obsolete comment about (!!)
    
    as spotted by David Feuer and reported as #9585.
    The comment was right until ceb68b9118fa883e88abfaa532fc78f6640cf17f,
    which is only 13 years ago :-).


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

9d713150d87de07e132c1211eec956e0ae69aa7f
 libraries/base/GHC/List.lhs | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libraries/base/GHC/List.lhs b/libraries/base/GHC/List.lhs
index bbaf39f..2dffecc 100644
--- a/libraries/base/GHC/List.lhs
+++ b/libraries/base/GHC/List.lhs
@@ -624,9 +624,6 @@ xs     !! n | n < 0 =  error "Prelude.!!: negative index"
 (_:xs) !! n         =  xs !! (n-1)
 #else
 -- HBC version (stolen), then unboxified
--- The semantics is not quite the same for error conditions
--- in the more efficient version.
---
 xs !! (I# n0) | isTrue# (n0 <# 0#) =  error "Prelude.(!!): negative index\n"
               | otherwise          =  sub xs n0
                          where



More information about the ghc-commits mailing list