From 65815144d40beebd7be47049d6f122703430d4ec Mon Sep 17 00:00:00 2001 From: sewardj Date: Wed, 13 Dec 2000 11:30:12 +0000 Subject: [PATCH] [project @ 2000-12-13 11:30:12 by sewardj] Track renaming of newCharArray# to newByteArray# --- ghc/compiler/utils/PrimPacked.lhs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc/compiler/utils/PrimPacked.lhs b/ghc/compiler/utils/PrimPacked.lhs index 502da6e..250f7bf 100644 --- a/ghc/compiler/utils/PrimPacked.lhs +++ b/ghc/compiler/utils/PrimPacked.lhs @@ -187,9 +187,12 @@ new_ps_array size = ST $ \ s -> #elif __GLASGOW_HASKELL__ < 405 case (newCharArray# size s) of { (# s2#, barr# #) -> (# s2#, MutableByteArray bot barr# #) } -#else +#elif __GLASGOW_HASKELL__ < 411 case (newCharArray# size s) of { (# s2#, barr# #) -> (# s2#, MutableByteArray bot bot barr# #) } +#else /* 411 and higher */ + case (newByteArray# size s) of { (# s2#, barr# #) -> + (# s2#, MutableByteArray bot bot barr# #) } #endif where bot = error "new_ps_array" -- 1.7.10.4