[project @ 1997-08-25 22:21:46 by sof]
authorsof <unknown>
Mon, 25 Aug 1997 22:21:46 +0000 (22:21 +0000)
committersof <unknown>
Mon, 25 Aug 1997 22:21:46 +0000 (22:21 +0000)
2.06 uses PackBase

ghc/compiler/utils/StringBuffer.lhs

index 12c7190..0647cf3 100644 (file)
@@ -332,8 +332,11 @@ lexemeToString (StringBuffer fo _ start_pos# current#) =
  if start_pos# ==# current# then
     ""
  else
+#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 205
     byteArrayToString (copySubStr (A# fo) (I# start_pos#) (I# (current# -# start_pos#)))
-
+#else
+    unpackCStringBA (copySubStr (A# fo) (I# start_pos#) (I# (current# -# start_pos#)))
+#endif
     
 lexemeToByteArray :: StringBuffer -> _ByteArray Int
 lexemeToByteArray (StringBuffer fo _ start_pos# current#) =