Remove Hugs98 specific code

For rationale, see
 http://permalink.gmane.org/gmane.comp.lang.haskell.ghc.devel/2349

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Constant-fold `__GLASGOW_HASKELL__` CPP conditionals

Now that HUGS and NHC specific code has been removed, this commit
"folds" the now redundant `#if((n)def)`s containing
`__GLASGOW_HASKELL__`.  This renders `base` officially GHC only.

This commit also inlines the `INSTANCE_TYPEABLE` macros and removes the
now superflous local `include/Typeable.h` header.

Finally, the `array.cabal` file is updated as well to remove the now
superflous conditionals.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Follow changes in comparison primops (see #6135)
Modernize `array` package via `{-# LANGUAGE #-}` pragmas

This converts the Cabal field `default-extensions`into
`other-extensions` and adds explicit `{-# LANGUAGE #-}` pragmas
to the respective modules.

This also removes a few obsolete pre-Haddock-2 `#hide` pragmas.

Note: The new `default-extensions` field lists extensions that are used
in all modules in the component, while the `other-extensions` field
lists extensions that are used in some modules, e.g. via the
`{-# LANGUAGE #-}` pragma.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Clean up warnings and restore GHC 7.6 compatibility

This commit

 - removes redundant imports
 - removes obsolete `{-# OPTIONS_GHC -#include "HsBase.h" #-}`
 - adds a forgotten guard to one `isTrue#` occurence
 - adds a few explicit `_ <-` binds to avoid unused-binds warning
 - relax `base` build-dep version constraint to include GHC 7.6
 - remove warning-disabling `OPTIONS_GHC` from modules
 - adds `ghc-options: -Wall` to `array.cabal` file as the code base
   now warning-free on GHC 7.6 and GHC HEAD

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Add `/Since: 0.4.0.0/` annotations to new modules

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Finally remove deprecated unsafe exports

Those exports were deprecated in `array-0.4.0.0`
(which shipped with GHC 7.4.1)

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Add `source-repository this` and changelog file

Displaying this changelog file is supported by the new Hackage server.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Restablish compatibility with GHC 7.4.1

As of now, this package has been verified to work with GHC 7.4.x, GHC
7.6.x and GHC HEAD.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Add `dist/` to `.gitignore`

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>