projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89300e4
)
[project @ 1999-02-18 17:55:40 by simonm]
author
simonm
<unknown>
Thu, 18 Feb 1999 17:55:40 +0000
(17:55 +0000)
committer
simonm
<unknown>
Thu, 18 Feb 1999 17:55:40 +0000
(17:55 +0000)
Eliminate an unnecessary pattern match on J#.
ghc/compiler/utils/StringBuffer.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/utils/StringBuffer.lhs
b/ghc/compiler/utils/StringBuffer.lhs
index
18d2756
..
3f6bd0a
100644
(file)
--- a/
ghc/compiler/utils/StringBuffer.lhs
+++ b/
ghc/compiler/utils/StringBuffer.lhs
@@
-114,7
+114,7
@@
hGetStringBuffer fname =
return (StringBuffer a# read# 0# 0#)
#else
openFile fname ReadMode >>= \ hndl ->
- hFileSize hndl >>= \ len@(J# _ _ d#) ->
+ hFileSize hndl >>= \ len ->
let len_i = fromInteger len in
-- Allocate an array for system call to store its bytes into.
-- ToDo: make it robust