Add {-# OPTIONS_GHC -w #-} and some blurb to all compiler modules
[ghc-hetmet.git] / compiler / main / BreakArray.hs
index 788adf2..86b9da4 100644 (file)
@@ -1,10 +1,22 @@
+-----------------------------------------------------------------------------
 --
 -- Break Arrays in the IO monad
 -- Entries in the array are Word sized 
 --
+-- (c) The University of Glasgow 2007
+--
+-----------------------------------------------------------------------------
+
+{-# OPTIONS_GHC -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/WorkingConventions#Warnings
+-- for details
 
 module BreakArray
   ( BreakArray (BA)
+        -- constructor is exported only for ByteCodeGen
   , newBreakArray
   , getBreak 
   , setBreakOn 
@@ -21,8 +33,8 @@ 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 ()