[darcs-users] darcs patch: Temporary bodge for missing Data.Function in GHC 6.6.

Eric Kow kowey at darcs.net
Mon May 25 09:29:05 UTC 2009


On Sat, May 23, 2009 at 15:39:57 +1000, Trent W.Buck wrote:
> Sat May 23 15:31:28 EST 2009  Trent W. Buck <trentbuck at gmail.com>
>   * Temporary bodge for missing Data.Function in GHC 6.6.

Applied, thanks for fixing that!

Temporary bodge for missing Data.Function in GHC 6.6.
-----------------------------------------------------
> +-- Reduces to the "import" line after we drop GHC 6.6 support.
> +#if __GLASGOW_HASKELL >= 686
> +import Data.Function (on)    -- not in GHC 6.6
> +#else
> +on :: (b -> b -> c) -> (a -> b) -> a -> a -> c
> +on f g = \x y -> f (g x) (g y)
> +#endif

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090525/477fcb5d/attachment.pgp>


More information about the darcs-users mailing list