From: SourceForge.net <no...@so...> - 2005-11-07 23:51:06
|
Bugs item #1350152, was opened at 2005-11-07 10:40 Message generated for change (Settings changed) made by as49 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=455426&aid=1350152&group_id=49207 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None >Status: Closed Resolution: None Priority: 3 Submitted By: Axel Simon (as49) Assigned to: Nobody/Anonymous (nobody) Summary: Missing methods in Cairo.Matrix Initial Comment: I get this when compiling: cairo/Graphics/Rendering/Cairo/Matrix.chs:60: Warning: No explicit method nor default method for `+' In the instance declaration for `Num Matrix' cairo/Graphics/Rendering/Cairo/Matrix.chs:60: Warning: No explicit method nor default method for `signum' In the instance declaration for `Num Matrix' cairo/Graphics/Rendering/Cairo/Matrix.chs:60: Warning: No explicit method nor default method for `abs' In the instance declaration for `Num Matrix' cairo/Graphics/Rendering/Cairo/Matrix.chs:60: Warning: No explicit method nor default method for `fromInteger' In the instance declaration for `Num Matrix' What's the right way to fix this? Axel. ---------------------------------------------------------------------- Comment By: Duncan Coutts (duncan_coutts) Date: 2005-11-07 23:40 Message: Logged In: YES user_id=36779 Fixed by supplying the following definitions for the class methods: (+) = pointwise2 (+) (-) = pointwise2 (-) negate = pointwise negate abs = pointwise abs signum = pointwise signum -- this definition of fromInteger means that 2*m = scale 2 m -- and it means 1 = identity fromInteger n = Matrix (fromInteger n) 0 0 (fromInteger n) 0 0 If these definitions look reasonable then lets close this bug. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=455426&aid=1350152&group_id=49207 |