[darcs-devel] darcs patch: upcoming GHC 6.6 fixes

Esa Ilari Vuokko eivuokko at gmail.com
Tue Aug 15 17:18:48 PDT 2006


Hi,

I compiled darcs using recent ghc-6.5 build, few things have changed.
These patches (together) have been tested with ghc-6.5-20060813 and
ghc-6.4.2 (both in Windows, mingw32).  They are against darcs-unstable.

Wed Aug 16 02:57:39 FLE Daylight Time 2006  Esa Ilari Vuokko <ei at vuokko.info>
  * Check for module Text.Html in package html

Text.Html was moved to it's own package html from base, as part
of adopting new CGI stuff.


Wed Aug 16 02:57:14 FLE Daylight Time 2006  Esa Ilari Vuokko <ei at vuokko.info>
  * Link to relevant symbol when checking for Control.Monad.Error

Apparently new ghc drops module init requirements if there's no
references to it.  This uses real symbol in Control.Monad.Error
instead of putStr undefined.


Wed Aug 16 02:41:27 FLE Daylight Time 2006  Esa Ilari Vuokko <ei at vuokko.info>
  * Workaround for HasBounds that was removed in base-2.0 (GHC 6.6)

base-2.0 (going out with ghc 6.6) doesn't have HasBounds class
anymore, as MArray got it's own getBounds and IArray got bounds
(this all so that resizeable MArrays would be possible).  This
patch workaround this by introducing aLenM for MArrays and
providing correct implementations of aLen and aLenM for
__GLASGOW_HASKELL__ > 604  (that is, every ghc after 6.4.x)

Best regards,
--Esa Ilari Vuokko




More information about the darcs-devel mailing list