packages feed

diagrams-lib 1.6 → 1.6.1

raw patch · 4 files changed

+17/−14 lines, 4 filesdep ~adjunctionsdep ~distributivedep ~exceptionsPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: adjunctions, distributive, exceptions, transformers

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+## [v1.6.1](https://github.com/diagrams/diagrams-lib/tree/v1.6.1) (2026-11-23)++- Bug fix: 3D `rotateAbout` did not rotate about the correct line ([#383](https://github.com/diagrams/diagrams-lib/issues/383))+ ## [v1.6](https://github.com/diagrams/diagrams-lib/tree/v1.6) (2026-08-06)  - Fix a ton of warnings
diagrams-lib.cabal view
@@ -1,5 +1,5 @@ Name:                diagrams-lib-Version:             1.6+Version:             1.6.1 Synopsis:            Embedded domain-specific language for declarative graphics Description:         Diagrams is a flexible, extensible EDSL for creating                      graphics of many types.  Graphics can be created@@ -121,14 +121,14 @@                        JuicyPixels >= 3.3.4 && < 3.4,                        hashable >= 1.1 && < 1.6,                        linear >= 1.20.1 && < 1.24,-                       adjunctions >= 4.0 && < 5.0,-                       distributive >=0.2.2 && < 1.0,+                       adjunctions >= 4 && < 5,+                       distributive >=0.2.2 && < 1,                        process >= 1.1 && < 1.7,                        directory >= 1.2 && < 1.4,                        unordered-containers >= 0.2 && < 0.3,                        mtl >= 2.0 && < 2.3 || >= 2.3.1 && < 2.4,-                       transformers >= 0.3.0 && < 0.7.0,-                       exceptions >= 0.6 && < 1.0,+                       transformers >= 0.3.0 && < 0.7,+                       exceptions >= 0.6 && < 1,                        cereal >=0.4.1.1 && <0.6,                        bytestring >=0.9 && <0.13   Hs-source-dirs:      src
src/Diagrams/ThreeD/Transform.hs view
@@ -116,15 +116,14 @@   -> Angle n            -- ^ angle of rotation   -> Transformation V3 n rotationAbout (P t) d (view rad -> a)-  = mconcat [translation (negated t),-             fromOrthogonal r,-             translation t] where-    r = rot a <-> rot (-a)-    w = fromDirection d+  = conjugate (translation (negated t)) (fromOrthogonal r)+ where+  r = rot a <-> rot (-a)+  w = fromDirection d -    rot θ v =          v ^* cos θ-           ^+^ cross w v ^* sin θ-           ^+^         w ^* ((w `dot` v) * (1 - cos θ))+  rot θ v =          v ^* cos θ+         ^+^ cross w v ^* sin θ+         ^+^         w ^* ((w `dot` v) * (1 - cos θ))  -- | @rotationAbout p d a@ is a rotation about a line parallel to @d@ --   passing through @p@.
src/Diagrams/TwoD/Transform.hs view
@@ -100,7 +100,7 @@         => Angle n -> Iso a b a b rotated a = transformed $ rotation a --- | @rotationAbout p@ is a rotation about the point @p@ (instead of+-- | @rotationAround p@ is a rotation around the point @p@ (instead of --   around the local origin). rotationAround :: Floating n => P2 n -> Angle n -> T2 n rotationAround p theta =