-{-# OPTIONS -fno-implicit-prelude #-}
+{-# OPTIONS_GHC -fno-implicit-prelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Array
import Data.Ix
#ifdef __GLASGOW_HASKELL__
-import GHC.Arr -- Most of the hard work is done here
-import GHC.Err ( undefined )
+import GHC.Arr -- Most of the hard work is done here
+import Data.Generics.Basics -- To provide a Data instance
+import Data.Generics.Instances -- To provide a Data instance
+import GHC.Err ( error ) -- Needed for Data instance
#endif
#ifdef __HUGS__
import Array -- Haskell'98 arrays
#endif
-#ifndef __NHC__
import Data.Typeable
-#endif
-
-#ifndef __NHC__
-#include "Typeable.h"
-INSTANCE_TYPEABLE2(Array,arrayTc,"Array")
-#endif
{- $intro
Haskell provides indexable /arrays/, which may be thought of as functions