packages feed

diagrams-core 0.6.0.1 → 0.6.0.2

raw patch · 3 files changed

+7/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGES.markdown view
@@ -1,3 +1,8 @@+0.6.0.2: 5 March 2013+---------------------++* bug fix: the 'diameter' and 'radius' functions now work correctly.+ 0.6.0.1: 7 January 2013 ----------------------- 
diagrams-core.cabal view
@@ -1,5 +1,5 @@ Name:                diagrams-core-Version:             0.6.0.1+Version:             0.6.0.2 Synopsis:            Core libraries for diagrams EDSL Description:         The core modules underlying diagrams,                      an embedded domain-specific language
src/Diagrams/Core/Envelope.hs view
@@ -251,7 +251,7 @@ --   vector.  Returns zero for the empty envelope. diameter :: Enveloped a => V a -> a -> Scalar (V a) diameter v a = case appEnvelope $ getEnvelope a of-  (Just env) -> (env v - env (negateV v)) * magnitude v+  (Just env) -> (env v + env (negateV v)) * magnitude v   Nothing -> 0  -- | Compute the \"radius\" (1\/2 the diameter) of an enveloped object