diagrams-lib 1.4.1.1 → 1.4.1.2
raw patch · 3 files changed
+32/−1 lines, 3 filesdep ~colourdep ~optparse-applicativedep ~processPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: colour, optparse-applicative, process, tasty, tasty-quickcheck
API changes (from Hackage documentation)
- Diagrams.Segment: oeEnvelope :: forall v_a1dJ1 n_a1dJ2. Lens' (OffsetEnvelope v_a1dJ1 n_a1dJ2) (Envelope v_a1dJ1 n_a1dJ2)
+ Diagrams.Segment: oeEnvelope :: forall v_a1dPx n_a1dPy. Lens' (OffsetEnvelope v_a1dPx n_a1dPy) (Envelope v_a1dPx n_a1dPy)
- Diagrams.Segment: oeOffset :: forall v_a1dJ1 n_a1dJ2. Lens' (OffsetEnvelope v_a1dJ1 n_a1dJ2) (TotalOffset v_a1dJ1 n_a1dJ2)
+ Diagrams.Segment: oeOffset :: forall v_a1dPx n_a1dPy. Lens' (OffsetEnvelope v_a1dPx n_a1dPy) (TotalOffset v_a1dPx n_a1dPy)
- Diagrams.ThreeD.Camera: horizontalFieldOfView :: forall n_aRrx. Lens' (PerspectiveLens n_aRrx) (Angle n_aRrx)
+ Diagrams.ThreeD.Camera: horizontalFieldOfView :: forall n_aRy3. Lens' (PerspectiveLens n_aRy3) (Angle n_aRy3)
- Diagrams.ThreeD.Camera: orthoHeight :: forall n_aRtL. Lens' (OrthoLens n_aRtL) n_aRtL
+ Diagrams.ThreeD.Camera: orthoHeight :: forall n_aRAh. Lens' (OrthoLens n_aRAh) n_aRAh
- Diagrams.ThreeD.Camera: orthoWidth :: forall n_aRtL. Lens' (OrthoLens n_aRtL) n_aRtL
+ Diagrams.ThreeD.Camera: orthoWidth :: forall n_aRAh. Lens' (OrthoLens n_aRAh) n_aRAh
- Diagrams.ThreeD.Camera: verticalFieldOfView :: forall n_aRrx. Lens' (PerspectiveLens n_aRrx) (Angle n_aRrx)
+ Diagrams.ThreeD.Camera: verticalFieldOfView :: forall n_aRy3. Lens' (PerspectiveLens n_aRy3) (Angle n_aRy3)
- Diagrams.Transform.ScaleInv: scaleInvDir :: forall t_a14NM. Lens' (ScaleInv t_a14NM) (Vn t_a14NM)
+ Diagrams.Transform.ScaleInv: scaleInvDir :: forall t_a14Ui. Lens' (ScaleInv t_a14Ui) (Vn t_a14Ui)
- Diagrams.Transform.ScaleInv: scaleInvLoc :: forall t_a14NM. Lens' (ScaleInv t_a14NM) (Point (V t_a14NM) (N t_a14NM))
+ Diagrams.Transform.ScaleInv: scaleInvLoc :: forall t_a14Ui. Lens' (ScaleInv t_a14Ui) (Point (V t_a14Ui) (N t_a14Ui))
- Diagrams.Transform.ScaleInv: scaleInvObj :: forall t_a14NM. Lens' (ScaleInv t_a14NM) t_a14NM
+ Diagrams.Transform.ScaleInv: scaleInvObj :: forall t_a14Ui. Lens' (ScaleInv t_a14Ui) t_a14Ui
- Diagrams.TwoD: _LG :: forall n_a27Rs. Prism' (Texture n_a27Rs) (LGradient n_a27Rs)
+ Diagrams.TwoD: _LG :: forall n_a27XY. Prism' (Texture n_a27XY) (LGradient n_a27XY)
- Diagrams.TwoD: _RG :: forall n_a27Rs. Prism' (Texture n_a27Rs) (RGradient n_a27Rs)
+ Diagrams.TwoD: _RG :: forall n_a27XY. Prism' (Texture n_a27XY) (RGradient n_a27XY)
- Diagrams.TwoD: _SC :: forall n_a27Rs. Prism' (Texture n_a27Rs) SomeColor
+ Diagrams.TwoD: _SC :: forall n_a27XY. Prism' (Texture n_a27XY) SomeColor
- Diagrams.TwoD: eColor :: forall n_a2mxF. Lens' (EnvelopeOpts n_a2mxF) (Colour Double)
+ Diagrams.TwoD: eColor :: forall n_a2mEc. Lens' (EnvelopeOpts n_a2mEc) (Colour Double)
- Diagrams.TwoD: eLineWidth :: forall n_a2mxF n_a2mzE. Lens (EnvelopeOpts n_a2mxF) (EnvelopeOpts n_a2mzE) (Measure n_a2mxF) (Measure n_a2mzE)
+ Diagrams.TwoD: eLineWidth :: forall n_a2mEc n_a2mGb. Lens (EnvelopeOpts n_a2mEc) (EnvelopeOpts n_a2mGb) (Measure n_a2mEc) (Measure n_a2mGb)
- Diagrams.TwoD: ePoints :: forall n_a2mxF. Lens' (EnvelopeOpts n_a2mxF) Int
+ Diagrams.TwoD: ePoints :: forall n_a2mEc. Lens' (EnvelopeOpts n_a2mEc) Int
- Diagrams.TwoD: oColor :: forall n_a2mwM. Lens' (OriginOpts n_a2mwM) (Colour Double)
+ Diagrams.TwoD: oColor :: forall n_a2mDj. Lens' (OriginOpts n_a2mDj) (Colour Double)
- Diagrams.TwoD: oMinSize :: forall n_a2mwM. Lens' (OriginOpts n_a2mwM) n_a2mwM
+ Diagrams.TwoD: oMinSize :: forall n_a2mDj. Lens' (OriginOpts n_a2mDj) n_a2mDj
- Diagrams.TwoD: oScale :: forall n_a2mwM. Lens' (OriginOpts n_a2mwM) n_a2mwM
+ Diagrams.TwoD: oScale :: forall n_a2mDj. Lens' (OriginOpts n_a2mDj) n_a2mDj
- Diagrams.TwoD: radiusBL :: forall d_a2AEv. Lens' (RoundedRectOpts d_a2AEv) d_a2AEv
+ Diagrams.TwoD: radiusBL :: forall d_a2AL2. Lens' (RoundedRectOpts d_a2AL2) d_a2AL2
- Diagrams.TwoD: radiusBR :: forall d_a2AEv. Lens' (RoundedRectOpts d_a2AEv) d_a2AEv
+ Diagrams.TwoD: radiusBR :: forall d_a2AL2. Lens' (RoundedRectOpts d_a2AL2) d_a2AL2
- Diagrams.TwoD: radiusTL :: forall d_a2AEv. Lens' (RoundedRectOpts d_a2AEv) d_a2AEv
+ Diagrams.TwoD: radiusTL :: forall d_a2AL2. Lens' (RoundedRectOpts d_a2AL2) d_a2AL2
- Diagrams.TwoD: radiusTR :: forall d_a2AEv. Lens' (RoundedRectOpts d_a2AEv) d_a2AEv
+ Diagrams.TwoD: radiusTR :: forall d_a2AL2. Lens' (RoundedRectOpts d_a2AL2) d_a2AL2
- Diagrams.TwoD: tColor :: forall n_a2mA3. Lens' (TraceOpts n_a2mA3) (Colour Double)
+ Diagrams.TwoD: tColor :: forall n_a2mGA. Lens' (TraceOpts n_a2mGA) (Colour Double)
- Diagrams.TwoD: tMinSize :: forall n_a2mA3. Lens' (TraceOpts n_a2mA3) n_a2mA3
+ Diagrams.TwoD: tMinSize :: forall n_a2mGA. Lens' (TraceOpts n_a2mGA) n_a2mGA
- Diagrams.TwoD: tPoints :: forall n_a2mA3. Lens' (TraceOpts n_a2mA3) Int
+ Diagrams.TwoD: tPoints :: forall n_a2mGA. Lens' (TraceOpts n_a2mGA) Int
- Diagrams.TwoD: tScale :: forall n_a2mA3. Lens' (TraceOpts n_a2mA3) n_a2mA3
+ Diagrams.TwoD: tScale :: forall n_a2mGA. Lens' (TraceOpts n_a2mGA) n_a2mGA
- Diagrams.TwoD.Attributes: _LG :: forall n_a27Rs. Prism' (Texture n_a27Rs) (LGradient n_a27Rs)
+ Diagrams.TwoD.Attributes: _LG :: forall n_a27XY. Prism' (Texture n_a27XY) (LGradient n_a27XY)
- Diagrams.TwoD.Attributes: _RG :: forall n_a27Rs. Prism' (Texture n_a27Rs) (RGradient n_a27Rs)
+ Diagrams.TwoD.Attributes: _RG :: forall n_a27XY. Prism' (Texture n_a27XY) (RGradient n_a27XY)
- Diagrams.TwoD.Attributes: _SC :: forall n_a27Rs. Prism' (Texture n_a27Rs) SomeColor
+ Diagrams.TwoD.Attributes: _SC :: forall n_a27XY. Prism' (Texture n_a27XY) SomeColor
- Diagrams.TwoD.Model: eColor :: forall n_a2mxF. Lens' (EnvelopeOpts n_a2mxF) (Colour Double)
+ Diagrams.TwoD.Model: eColor :: forall n_a2mEc. Lens' (EnvelopeOpts n_a2mEc) (Colour Double)
- Diagrams.TwoD.Model: eLineWidth :: forall n_a2mxF n_a2mzE. Lens (EnvelopeOpts n_a2mxF) (EnvelopeOpts n_a2mzE) (Measure n_a2mxF) (Measure n_a2mzE)
+ Diagrams.TwoD.Model: eLineWidth :: forall n_a2mEc n_a2mGb. Lens (EnvelopeOpts n_a2mEc) (EnvelopeOpts n_a2mGb) (Measure n_a2mEc) (Measure n_a2mGb)
- Diagrams.TwoD.Model: ePoints :: forall n_a2mxF. Lens' (EnvelopeOpts n_a2mxF) Int
+ Diagrams.TwoD.Model: ePoints :: forall n_a2mEc. Lens' (EnvelopeOpts n_a2mEc) Int
- Diagrams.TwoD.Model: oColor :: forall n_a2mwM. Lens' (OriginOpts n_a2mwM) (Colour Double)
+ Diagrams.TwoD.Model: oColor :: forall n_a2mDj. Lens' (OriginOpts n_a2mDj) (Colour Double)
- Diagrams.TwoD.Model: oMinSize :: forall n_a2mwM. Lens' (OriginOpts n_a2mwM) n_a2mwM
+ Diagrams.TwoD.Model: oMinSize :: forall n_a2mDj. Lens' (OriginOpts n_a2mDj) n_a2mDj
- Diagrams.TwoD.Model: oScale :: forall n_a2mwM. Lens' (OriginOpts n_a2mwM) n_a2mwM
+ Diagrams.TwoD.Model: oScale :: forall n_a2mDj. Lens' (OriginOpts n_a2mDj) n_a2mDj
- Diagrams.TwoD.Model: tColor :: forall n_a2mA3. Lens' (TraceOpts n_a2mA3) (Colour Double)
+ Diagrams.TwoD.Model: tColor :: forall n_a2mGA. Lens' (TraceOpts n_a2mGA) (Colour Double)
- Diagrams.TwoD.Model: tMinSize :: forall n_a2mA3. Lens' (TraceOpts n_a2mA3) n_a2mA3
+ Diagrams.TwoD.Model: tMinSize :: forall n_a2mGA. Lens' (TraceOpts n_a2mGA) n_a2mGA
- Diagrams.TwoD.Model: tPoints :: forall n_a2mA3. Lens' (TraceOpts n_a2mA3) Int
+ Diagrams.TwoD.Model: tPoints :: forall n_a2mGA. Lens' (TraceOpts n_a2mGA) Int
- Diagrams.TwoD.Model: tScale :: forall n_a2mA3. Lens' (TraceOpts n_a2mA3) n_a2mA3
+ Diagrams.TwoD.Model: tScale :: forall n_a2mGA. Lens' (TraceOpts n_a2mGA) n_a2mGA
- Diagrams.TwoD.Shapes: radiusBL :: forall d_a2AEv. Lens' (RoundedRectOpts d_a2AEv) d_a2AEv
+ Diagrams.TwoD.Shapes: radiusBL :: forall d_a2AL2. Lens' (RoundedRectOpts d_a2AL2) d_a2AL2
- Diagrams.TwoD.Shapes: radiusBR :: forall d_a2AEv. Lens' (RoundedRectOpts d_a2AEv) d_a2AEv
+ Diagrams.TwoD.Shapes: radiusBR :: forall d_a2AL2. Lens' (RoundedRectOpts d_a2AL2) d_a2AL2
- Diagrams.TwoD.Shapes: radiusTL :: forall d_a2AEv. Lens' (RoundedRectOpts d_a2AEv) d_a2AEv
+ Diagrams.TwoD.Shapes: radiusTL :: forall d_a2AL2. Lens' (RoundedRectOpts d_a2AL2) d_a2AL2
- Diagrams.TwoD.Shapes: radiusTR :: forall d_a2AEv. Lens' (RoundedRectOpts d_a2AEv) d_a2AEv
+ Diagrams.TwoD.Shapes: radiusTR :: forall d_a2AL2. Lens' (RoundedRectOpts d_a2AL2) d_a2AL2
Files
- CHANGELOG.md +4/−0
- diagrams-lib.cabal +2/−1
- test/Diagrams/Test/Transform/Matrix.hs +26/−0
CHANGELOG.md view
@@ -1,3 +1,7 @@+## [v1.4.1.2](https://github.com/diagrams/diagrams-lib/tree/v1.4.1.2) (2017-06-10)++- Fix test suite compilation failure [#299](https://github.com/diagrams/diagrams-lib/issues/299).+ ## [v1.4.1.1](https://github.com/diagrams/diagrams-lib/tree/v1.4.1.1) (2017-06-06) - Fix `Diagrams.Points.centroid` to make it total.
diagrams-lib.cabal view
@@ -1,5 +1,5 @@ Name: diagrams-lib-Version: 1.4.1.1+Version: 1.4.1.2 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@@ -151,6 +151,7 @@ other-modules: Diagrams.Test.Direction , Diagrams.Test.Trail , Diagrams.Test.Transform+ , Diagrams.Test.Transform.Matrix , Diagrams.Test.TwoD.Offset , Diagrams.Test.TwoD , Diagrams.Test.Angle
+ test/Diagrams/Test/Transform/Matrix.hs view
@@ -0,0 +1,26 @@+{-# LANGUAGE ScopedTypeVariables #-}++-- |++module Diagrams.Test.Transform.Matrix where+++import Test.Tasty+import Test.Tasty.QuickCheck+import Diagrams.Transform.Matrix+import Diagrams.Prelude+import Data.Distributive (distribute)++import Instances++tests :: TestTree+tests = testGroup "Transform.Matrix"+ [+ testProperty "mkMat column vectors (2D)" $+ \(Blind (t :: T2 Double)) -> distribute (mkMat t) =~ V2 (transform t unitX) (transform t unitY)+ , testProperty "mkMat / fromMat22" $+ \(m :: V2 (V2 Double)) -> mkMat (fromMat22 m zero) =~ m++ , testProperty "mkMat / fromMat33" $+ \(m :: V3 (V3 Double)) -> mkMat (fromMat33 m zero) =~ m+ ]