X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FBreakArray.hs;h=8d86582efeecf878b8d77c3ce1ec7a9c8a57b06f;hb=e1b45af148b2db08518a543f58c28a60c1f815b6;hp=788adf200c1a57f811c21fbe27360636a6027d09;hpb=cdce647711c0f46f5799b24de087622cb77e647f;p=ghc-hetmet.git diff --git a/compiler/main/BreakArray.hs b/compiler/main/BreakArray.hs index 788adf2..8d86582 100644 --- a/compiler/main/BreakArray.hs +++ b/compiler/main/BreakArray.hs @@ -1,10 +1,22 @@ +----------------------------------------------------------------------------- -- -- Break Arrays in the IO monad -- Entries in the array are Word sized -- +-- (c) The University of Glasgow 2007 +-- +----------------------------------------------------------------------------- + +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings +-- for details module BreakArray ( BreakArray (BA) + -- constructor is exported only for ByteCodeGen , newBreakArray , getBreak , setBreakOn @@ -14,15 +26,14 @@ module BreakArray import GHC.Exts import GHC.IOBase -import GHC.Prim import GHC.Word import Constants data BreakArray = BA (MutableByteArray# RealWorld) breakOff, breakOn :: Word -breakOn = fromIntegral 1 -breakOff = fromIntegral 0 +breakOn = 1 +breakOff = 0 -- XXX crude showBreakArray :: BreakArray -> IO ()