cvs commit: hugs98/src/unix convert_libraries hugs98/libraries/Hu gs Array.hs IOArray.hs LazyST.hs Prelude.hs ST.hs hugs98/libraries/Hugs/Ar ray Base.hs

ross@glass.cse.ogi.edu ross@glass.cse.ogi.edu
Fri, 20 Sep 2002 06:15:09 -0700


ross        2002/09/20 06:15:09 PDT

  Modified files:
    src/unix             convert_libraries 
    libraries/Hugs       Array.hs IOArray.hs LazyST.hs Prelude.hs 
                         ST.hs 
  Removed files:
    libraries/Hugs/Array Base.hs 
  Log:
  Introduce methods for unchecked Int-based indexing of arrays, so we can
  use Data.Array.Base (minus the GHC-specific unboxed stuff), and later
  some of the other array modules.
  
  This is done by declaring the Hugs array primitives with slightly more
  general types, and passing them id instead of index bnds.  Later those
  primitives could be correspondingly simplified.
  
  There are also two extra methods in the Ix class (in Hugs.Prelude) but
  they're hidden by Prelude and Data.Ix.
  
  Revision  Changes    Path
  1.27      +1 -1      hugs98/src/unix/convert_libraries
  1.2       +33 -11    hugs98/libraries/Hugs/Array.hs
  1.2       +12 -11    hugs98/libraries/Hugs/IOArray.hs
  1.4       +14 -23    hugs98/libraries/Hugs/LazyST.hs
  1.7       +19 -5     hugs98/libraries/Hugs/Prelude.hs
  1.6       +14 -23    hugs98/libraries/Hugs/ST.hs