Repository : ssh://[email protected]/nofib On branch : master Link : http://ghc.haskell.org/trac/ghc/changeset/9701fb0ea75b1bd167a94d61d29cb2c47b1080f1/nofib
>--------------------------------------------------------------- commit 9701fb0ea75b1bd167a94d61d29cb2c47b1080f1 Author: Herbert Valerio Riedel <[email protected]> Date: Thu Aug 29 23:03:53 2013 +0200 Make n-queens benchmark compatible with older GHCs The change in 957b959dbeb14c3b2d10998d67310e880c01a7dd caused n-queens to break with older versions of `base` which still have `Foreign.unsafePerformIO` in place. >--------------------------------------------------------------- 9701fb0ea75b1bd167a94d61d29cb2c47b1080f1 shootout/n-body/Main.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shootout/n-body/Main.hs b/shootout/n-body/Main.hs index 857a2cb..7394e4f 100644 --- a/shootout/n-body/Main.hs +++ b/shootout/n-body/Main.hs @@ -11,13 +11,13 @@ -- Don't enable -optc-mfpmath=sse -optc-msse2, this triggers a gcc bug on x86 -- -import Foreign +import Foreign (Ptr, Storable(..), plusPtr, mallocBytes) import Foreign.Storable import Foreign.Marshal.Alloc import Data.IORef import Control.Monad import System.Environment -import System.IO.Unsafe +import System.IO.Unsafe (unsafePerformIO) import Text.Printf main = do _______________________________________________ ghc-commits mailing list [email protected] http://www.haskell.org/mailman/listinfo/ghc-commits
