On Mon, 27 Feb 2012, Eric Kow wrote:
On 27 Feb 2012, at 15:38, Eric Kow wrote:
darcs get --lazy http://code.haskell.org/wxhaskell
the-patch-you-downloaded.dpatch
cd wxhaskell
darcs apply -i ~/foo/the-patch-you-downloaded.dpatch
Oops, that's darcs get --lazy <REPO> --context <PATCH>
The idea is that darcs will then grab <REPO> and then unapply patches until
it's wound its way back to the context that the patch was expecting. This way you
avoid thinking about merging or conflicts.
Btw. I hope you do not have problems with latest GHC-7.4.1. I did some
patches to wxcore-0.12.1.7 in order to let wxhaskell work with GHC-7.4.1.
Where shall I send them, since wxhaskell moved to wxWidgets-3.0?
I have attached a diff.
diff -rN -u old-wxhaskell-0.12/wxcore/src/haskell/Graphics/UI/WXCore/WxcTypes.hs new-wxhaskell-0.12/wxcore/src/haskell/Graphics/UI/WXCore/WxcTypes.hs
--- old-wxhaskell-0.12/wxcore/src/haskell/Graphics/UI/WXCore/WxcTypes.hs 2012-02-27 21:40:16.000000000 +0100
+++ new-wxhaskell-0.12/wxcore/src/haskell/Graphics/UI/WXCore/WxcTypes.hs 2012-02-27 21:40:16.000000000 +0100
@@ -568,7 +568,7 @@
rectFromSize (Size w h)
= Rect 0 0 w h
-rectIsEmpty :: (Num a) => Rect2D a -> Bool
+rectIsEmpty :: (Num a, Eq a) => Rect2D a -> Bool
rectIsEmpty (Rect l t w h)
= (w==0 && h==0)
@@ -850,7 +850,7 @@
toCChar = castCharToCChar
-- generalised to work with Char and CChar
-withCharResult :: (Num a, Integral a) => IO a -> IO Char
+withCharResult :: (Num a, Integral a, Show a) => IO a -> IO Char
withCharResult io
= do x <- io
if (x < 0)
diff -rN -u old-wxhaskell-0.12/wxcore/wxcore.cabal new-wxhaskell-0.12/wxcore/wxcore.cabal
--- old-wxhaskell-0.12/wxcore/wxcore.cabal 2012-02-27 21:40:16.000000000 +0100
+++ new-wxhaskell-0.12/wxcore/wxcore.cabal 2012-02-27 21:40:16.000000000 +0100
@@ -1,5 +1,5 @@
name: wxcore
-version: 0.12.1.7
+version: 0.12.1.7.1
license: LGPL
license-file: LICENSE
author: Daan Leijen
@@ -203,7 +203,7 @@
if flag(splitBase)
build-depends:
- array >= 0.2 && < 0.4,
+ array >= 0.2 && < 0.5,
base >= 4 && < 5,
containers >= 0.2 && < 0.5
else
diff -rN -u old-wxhaskell-0.12/wxdirect/wxdirect.cabal new-wxhaskell-0.12/wxdirect/wxdirect.cabal
--- old-wxhaskell-0.12/wxdirect/wxdirect.cabal 2012-02-27 21:40:16.000000000 +0100
+++ new-wxhaskell-0.12/wxdirect/wxdirect.cabal 2012-02-27 21:40:16.000000000 +0100
@@ -60,7 +60,7 @@
build-depends:
parsec >= 2.1.0 && < 4,
- time >= 1.0 && < 1.3
+ time >= 1.0 && < 1.5
if flag(splitBase)
build-depends:
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users