[project @ 1999-02-18 17:55:40 by simonm]
authorsimonm <unknown>
Thu, 18 Feb 1999 17:55:40 +0000 (17:55 +0000)
committersimonm <unknown>
Thu, 18 Feb 1999 17:55:40 +0000 (17:55 +0000)
Eliminate an unnecessary pattern match on J#.

ghc/compiler/utils/StringBuffer.lhs

index 18d2756..3f6bd0a 100644 (file)
@@ -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