From: panne Date: Sat, 11 Mar 2000 23:55:16 +0000 (+0000) Subject: [project @ 2000-03-11 23:55:16 by panne] X-Git-Tag: Approximately_9120_patches~5016 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1dcd4daa53127812c6d497db0a189e50a1ba5133;p=ghc-hetmet.git [project @ 2000-03-11 23:55:16 by panne] Saturday Night Fever: hPutBufBA again... >:-( --- diff --git a/ghc/compiler/utils/FastString.lhs b/ghc/compiler/utils/FastString.lhs index 5d08d76..80b8c39 100644 --- a/ghc/compiler/utils/FastString.lhs +++ b/ghc/compiler/utils/FastString.lhs @@ -626,8 +626,11 @@ hPutFS handle (FastString _ l# ba#) | l# ==# 0# = return () #if __GLASGOW_HASKELL__ < 405 | otherwise = hPutBufBA handle (ByteArray bot ba#) (I# l#) -#else +#elsif __GLASGOW_HASKELL__ < 407 | otherwise = hPutBufBA handle (ByteArray bot bot ba#) (I# l#) +#else + | otherwise = do mba <- stToIO $ unsafeThawByteArray (ByteArray (bot::Int) bot ba#) + hPutBufBA handle mba (I# l#) #endif where bot = error "hPutFS.ba"