projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 1998-06-18 15:33:28 by sof]
[ghc-hetmet.git]
/
ghc
/
lib
/
misc
/
PackedString.lhs
diff --git
a/ghc/lib/misc/PackedString.lhs
b/ghc/lib/misc/PackedString.lhs
index
59a552f
..
2277bc1
100644
(file)
--- a/
ghc/lib/misc/PackedString.lhs
+++ b/
ghc/lib/misc/PackedString.lhs
@@
-714,7
+714,7
@@
takePS (I# n) ps
dropPS :: Int -> PackedString -> PackedString
dropPS (I# n) ps
- | n ==# len = ps
+ | n ==# len = nilPS
| otherwise = substrPS# ps n (lengthPS# ps -# 1#)
where
len = lengthPS# ps