projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4da1c53
)
[project @ 2005-04-04 12:16:45 by simonpj]
author
simonpj
<unknown>
Mon, 4 Apr 2005 12:16:45 +0000
(12:16 +0000)
committer
simonpj
<unknown>
Mon, 4 Apr 2005 12:16:45 +0000
(12:16 +0000)
Default method for unsafeRangeSize should use unsafeIndex!
GHC/Arr.lhs
patch
|
blob
|
history
diff --git
a/GHC/Arr.lhs
b/GHC/Arr.lhs
index
3de82ee
..
9e52c71
100644
(file)
--- a/
GHC/Arr.lhs
+++ b/
GHC/Arr.lhs
@@
-87,7
+87,7
@@
class (Ord a) => Ix a where
rangeSize b@(_l,h) | inRange b h = unsafeIndex b h + 1
| otherwise = 0
- unsafeRangeSize b = rangeSize b
+ unsafeRangeSize b@(_l,h) = unsafeIndex b h + 1
\end{code}
Note that the following is NOT right