xhb 0.5.2011.10.21 → 0.5.2012.3.26
raw patch · 2 files changed
+3/−3 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Graphics.XHB: class (Typeable a, Show a) => Error a
+ Graphics.XHB: class (Typeable a, Show a) => Error a where fromError (SomeError e) = cast e toError = SomeError
- Graphics.XHB: class Typeable a => Event a
+ Graphics.XHB: class Typeable a => Event a where fromEvent (SomeEvent e) = cast e toEvent = SomeEvent
- Graphics.XHB: fromValue :: (SimpleEnum a, Num n) => n -> a
+ Graphics.XHB: fromValue :: (SimpleEnum a, Eq n, Num n) => n -> a
- Graphics.XHB: toValue :: (SimpleEnum a, Num n) => a -> n
+ Graphics.XHB: toValue :: (SimpleEnum a, Eq n, Num n) => a -> n
Files
- Graphics/XHB/Shared.hs +2/−2
- xhb.cabal +1/−1
@@ -66,8 +66,8 @@ -- Enums and ValueParams class SimpleEnum a where- toValue :: Num n => a -> n- fromValue :: Num n => n -> a+ toValue :: (Eq n, Num n) => a -> n+ fromValue :: (Eq n, Num n) => n -> a class BitEnum a where toBit :: a -> Int
xhb.cabal view
@@ -1,5 +1,5 @@ Name: xhb-Version: 0.5.2011.10.21+Version: 0.5.2012.3.26 Cabal-Version: >= 1.2.3 Synopsis: X Haskell Bindings Description: