Hipmunk 5.0.0 → 5.0.1
raw patch · 4 files changed
+17/−10 lines, 4 filesdep ~arraydep ~basedep ~containersPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: array, base, containers
API changes (from Hackage documentation)
Files
- Hipmunk.cabal +8/−5
- NEWS +5/−1
- Physics/Hipmunk/Common.hsc +1/−1
- Physics/Hipmunk/Unsafe.hsc +3/−3
Hipmunk.cabal view
@@ -3,7 +3,7 @@ Tested-With: GHC Category: Physics, Game Name: Hipmunk-Version: 5.0.0+Version: 5.0.1 Stability: provisional License: OtherLicense License-File: LICENSE@@ -20,12 +20,15 @@ <http://hackage.haskell.org/package/HipmunkPlayground> for a demonstration of this library. .+ New in version 5.0.1:+ * Updated dependencies for GHC 6.12. Thanks, dons.+ . New in version 5.0.0: . * Updated for a prerelease of Chipmunk 5.0 from subversion revision 192. Besides bugfixes this new version brings the long awaited new constraints type, doubling the- number of different joint from four to nine.+ number of different joints from four to nine. . * Tighter dependencies following the versioning policies. .@@ -106,10 +109,10 @@ Physics/Hipmunk/wrapper.c if flag(small_base) Build-Depends: base >= 3 && < 5,- array >= 0.1 && < 0.3,- containers >= 0.1 && < 0.3+ array >= 0.1 && < 0.4,+ containers >= 0.1 && < 0.4 else- Build-Depends: base == 2+ Build-Depends: base >= 2 && < 3 Extensions: CPP, ForeignFunctionInterface Build-Tools: hsc2hs GHC-Options: -Wall
NEWS view
@@ -1,5 +1,9 @@+Version 5.0.1+=============+ - Updated dependencies for GHC 6.12. Thanks, dons.+ Version 5.0.0-================+============= - Updated for a prerelease of Chipmunk 5.0 from subversion revision 192. Besides bugfixes this new version brings the long awaited new constraints type, doubling the number of
Physics/Hipmunk/Common.hsc view
@@ -155,7 +155,7 @@ -- -- However, be careful as you should not use shapes created -- before a call to @resetCounter@ with shapes created after it--- as they may have the same id. This means that can't add+-- as they may have the same id. This means that you can't add -- shapes created after the call to a space created before it. resetShapeCounter :: IO () resetShapeCounter = cpResetShapeIdCounter
Physics/Hipmunk/Unsafe.hsc view
@@ -39,8 +39,8 @@ -- @off@. Be careful, /you should not change the shape type/. -- For example, it is unsafe to change a circle shape's radius, -- but it is an error to try to change a circle into a segment--- or a polygon. Note also that these errors /are not--- checked/, meaning /they will probably crash Chipmunk/.+-- or a polygon. Note also that these errors /are not/+-- /checked/, meaning /they will probably crash Chipmunk/. unsafeShapeRedefine :: Shape -> ShapeType -> Position -> IO () unsafeShapeRedefine (S shape _) (Circle r) off = withForeignPtr shape $ \shape_ptr ->@@ -80,7 +80,7 @@ -- anything. It is unsafe because you should call 'redefine' -- only on the same kind of constraint you created, and this -- function allows you to bypass the type system checks. Note--- Also that, unlike Chipmunk, we don't check at run-time that+-- also that, unlike Chipmunk, we don't check at run-time that -- 'redefine' is being called on the right type! unsafeRememberC :: ConstraintType a => Constraint Unknown -> Constraint a unsafeRememberC (C c b1 b2) = C c b1 b2