diagrams-lib 1.4.4 → 1.4.5
raw patch · 7 files changed
+26/−13 lines, 7 filesdep ~basedep ~hashabledep ~lensPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, hashable, lens, semigroups, transformers
API changes (from Hackage documentation)
+ Diagrams.Prelude: class Prefixed t
+ Diagrams.Prelude: class Suffixed t
+ Diagrams.Prelude: matching' :: LensLike (Either a) s t a b -> s -> Either t a
+ Diagrams.Prelude: prefixed :: Prefixed t => t -> Prism' t t
+ Diagrams.Prelude: suffixed :: Suffixed t => t -> Prism' t t
+ Diagrams.Prelude: traversal :: ((a -> f b) -> s -> f t) -> LensLike f s t a b
+ Diagrams.Size: instance GHC.Classes.Eq (v n) => GHC.Classes.Eq (Diagrams.Size.SizeSpec v n)
- Diagrams.Prelude: pattern Swapped :: forall p c d. Swap p => p d c -> p c d
+ Diagrams.Prelude: pattern Swapped :: Swap p => p b a -> p a b
- Diagrams.Segment: oeEnvelope :: forall v_aY3O n_aY3P. Lens' (OffsetEnvelope v_aY3O n_aY3P) (Envelope v_aY3O n_aY3P)
+ Diagrams.Segment: oeEnvelope :: forall v_aYad n_aYae. Lens' (OffsetEnvelope v_aYad n_aYae) (Envelope v_aYad n_aYae)
- Diagrams.Segment: oeOffset :: forall v_aY3O n_aY3P. Lens' (OffsetEnvelope v_aY3O n_aY3P) (TotalOffset v_aY3O n_aY3P)
+ Diagrams.Segment: oeOffset :: forall v_aYad n_aYae. Lens' (OffsetEnvelope v_aYad n_aYae) (TotalOffset v_aYad n_aYae)
- Diagrams.ThreeD.Camera: horizontalFieldOfView :: forall n_aLL1. Lens' (PerspectiveLens n_aLL1) (Angle n_aLL1)
+ Diagrams.ThreeD.Camera: horizontalFieldOfView :: forall n_aLQQ. Lens' (PerspectiveLens n_aLQQ) (Angle n_aLQQ)
- Diagrams.ThreeD.Camera: orthoHeight :: forall n_aLNA. Lens' (OrthoLens n_aLNA) n_aLNA
+ Diagrams.ThreeD.Camera: orthoHeight :: forall n_aLTp. Lens' (OrthoLens n_aLTp) n_aLTp
- Diagrams.ThreeD.Camera: orthoWidth :: forall n_aLNA. Lens' (OrthoLens n_aLNA) n_aLNA
+ Diagrams.ThreeD.Camera: orthoWidth :: forall n_aLTp. Lens' (OrthoLens n_aLTp) n_aLTp
- Diagrams.ThreeD.Camera: verticalFieldOfView :: forall n_aLL1. Lens' (PerspectiveLens n_aLL1) (Angle n_aLL1)
+ Diagrams.ThreeD.Camera: verticalFieldOfView :: forall n_aLQQ. Lens' (PerspectiveLens n_aLQQ) (Angle n_aLQQ)
- Diagrams.Transform.ScaleInv: scaleInvDir :: forall t_aEl3. Lens' (ScaleInv t_aEl3) (Vn t_aEl3)
+ Diagrams.Transform.ScaleInv: scaleInvDir :: forall t_aEqS. Lens' (ScaleInv t_aEqS) (Vn t_aEqS)
- Diagrams.Transform.ScaleInv: scaleInvLoc :: forall t_aEl3. Lens' (ScaleInv t_aEl3) (Point (V t_aEl3) (N t_aEl3))
+ Diagrams.Transform.ScaleInv: scaleInvLoc :: forall t_aEqS. Lens' (ScaleInv t_aEqS) (Point (V t_aEqS) (N t_aEqS))
- Diagrams.Transform.ScaleInv: scaleInvObj :: forall t_aEl3. Lens' (ScaleInv t_aEl3) t_aEl3
+ Diagrams.Transform.ScaleInv: scaleInvObj :: forall t_aEqS. Lens' (ScaleInv t_aEqS) t_aEqS
- Diagrams.TwoD: _LG :: forall n_a1YTL. Prism' (Texture n_a1YTL) (LGradient n_a1YTL)
+ Diagrams.TwoD: _LG :: forall n_a1Z0a. Prism' (Texture n_a1Z0a) (LGradient n_a1Z0a)
- Diagrams.TwoD: _RG :: forall n_a1YTL. Prism' (Texture n_a1YTL) (RGradient n_a1YTL)
+ Diagrams.TwoD: _RG :: forall n_a1Z0a. Prism' (Texture n_a1Z0a) (RGradient n_a1Z0a)
- Diagrams.TwoD: _SC :: forall n_a1YTL. Prism' (Texture n_a1YTL) SomeColor
+ Diagrams.TwoD: _SC :: forall n_a1Z0a. Prism' (Texture n_a1Z0a) SomeColor
- Diagrams.TwoD: eColor :: forall n_a2lij. Lens' (EnvelopeOpts n_a2lij) (Colour Double)
+ Diagrams.TwoD: eColor :: forall n_a2loI. Lens' (EnvelopeOpts n_a2loI) (Colour Double)
- Diagrams.TwoD: eLineWidth :: forall n_a2lij n_a2lkJ. Lens (EnvelopeOpts n_a2lij) (EnvelopeOpts n_a2lkJ) (Measure n_a2lij) (Measure n_a2lkJ)
+ Diagrams.TwoD: eLineWidth :: forall n_a2loI n_a2lr8. Lens (EnvelopeOpts n_a2loI) (EnvelopeOpts n_a2lr8) (Measure n_a2loI) (Measure n_a2lr8)
- Diagrams.TwoD: ePoints :: forall n_a2lij. Lens' (EnvelopeOpts n_a2lij) Int
+ Diagrams.TwoD: ePoints :: forall n_a2loI. Lens' (EnvelopeOpts n_a2loI) Int
- Diagrams.TwoD: oColor :: forall n_a2lhm. Lens' (OriginOpts n_a2lhm) (Colour Double)
+ Diagrams.TwoD: oColor :: forall n_a2lnL. Lens' (OriginOpts n_a2lnL) (Colour Double)
- Diagrams.TwoD: oMinSize :: forall n_a2lhm. Lens' (OriginOpts n_a2lhm) n_a2lhm
+ Diagrams.TwoD: oMinSize :: forall n_a2lnL. Lens' (OriginOpts n_a2lnL) n_a2lnL
- Diagrams.TwoD: oScale :: forall n_a2lhm. Lens' (OriginOpts n_a2lhm) n_a2lhm
+ Diagrams.TwoD: oScale :: forall n_a2lnL. Lens' (OriginOpts n_a2lnL) n_a2lnL
- Diagrams.TwoD: radiusBL :: forall d_a1IFJ. Lens' (RoundedRectOpts d_a1IFJ) d_a1IFJ
+ Diagrams.TwoD: radiusBL :: forall d_a1IM8. Lens' (RoundedRectOpts d_a1IM8) d_a1IM8
- Diagrams.TwoD: radiusBR :: forall d_a1IFJ. Lens' (RoundedRectOpts d_a1IFJ) d_a1IFJ
+ Diagrams.TwoD: radiusBR :: forall d_a1IM8. Lens' (RoundedRectOpts d_a1IM8) d_a1IM8
- Diagrams.TwoD: radiusTL :: forall d_a1IFJ. Lens' (RoundedRectOpts d_a1IFJ) d_a1IFJ
+ Diagrams.TwoD: radiusTL :: forall d_a1IM8. Lens' (RoundedRectOpts d_a1IM8) d_a1IM8
- Diagrams.TwoD: radiusTR :: forall d_a1IFJ. Lens' (RoundedRectOpts d_a1IFJ) d_a1IFJ
+ Diagrams.TwoD: radiusTR :: forall d_a1IM8. Lens' (RoundedRectOpts d_a1IM8) d_a1IM8
- Diagrams.TwoD: tColor :: forall n_a2ll8. Lens' (TraceOpts n_a2ll8) (Colour Double)
+ Diagrams.TwoD: tColor :: forall n_a2lrx. Lens' (TraceOpts n_a2lrx) (Colour Double)
- Diagrams.TwoD: tMinSize :: forall n_a2ll8. Lens' (TraceOpts n_a2ll8) n_a2ll8
+ Diagrams.TwoD: tMinSize :: forall n_a2lrx. Lens' (TraceOpts n_a2lrx) n_a2lrx
- Diagrams.TwoD: tPoints :: forall n_a2ll8. Lens' (TraceOpts n_a2ll8) Int
+ Diagrams.TwoD: tPoints :: forall n_a2lrx. Lens' (TraceOpts n_a2lrx) Int
- Diagrams.TwoD: tScale :: forall n_a2ll8. Lens' (TraceOpts n_a2ll8) n_a2ll8
+ Diagrams.TwoD: tScale :: forall n_a2lrx. Lens' (TraceOpts n_a2lrx) n_a2lrx
- Diagrams.TwoD.Attributes: _LG :: forall n_a1YTL. Prism' (Texture n_a1YTL) (LGradient n_a1YTL)
+ Diagrams.TwoD.Attributes: _LG :: forall n_a1Z0a. Prism' (Texture n_a1Z0a) (LGradient n_a1Z0a)
- Diagrams.TwoD.Attributes: _RG :: forall n_a1YTL. Prism' (Texture n_a1YTL) (RGradient n_a1YTL)
+ Diagrams.TwoD.Attributes: _RG :: forall n_a1Z0a. Prism' (Texture n_a1Z0a) (RGradient n_a1Z0a)
- Diagrams.TwoD.Attributes: _SC :: forall n_a1YTL. Prism' (Texture n_a1YTL) SomeColor
+ Diagrams.TwoD.Attributes: _SC :: forall n_a1Z0a. Prism' (Texture n_a1Z0a) SomeColor
- Diagrams.TwoD.Model: eColor :: forall n_a2lij. Lens' (EnvelopeOpts n_a2lij) (Colour Double)
+ Diagrams.TwoD.Model: eColor :: forall n_a2loI. Lens' (EnvelopeOpts n_a2loI) (Colour Double)
- Diagrams.TwoD.Model: eLineWidth :: forall n_a2lij n_a2lkJ. Lens (EnvelopeOpts n_a2lij) (EnvelopeOpts n_a2lkJ) (Measure n_a2lij) (Measure n_a2lkJ)
+ Diagrams.TwoD.Model: eLineWidth :: forall n_a2loI n_a2lr8. Lens (EnvelopeOpts n_a2loI) (EnvelopeOpts n_a2lr8) (Measure n_a2loI) (Measure n_a2lr8)
- Diagrams.TwoD.Model: ePoints :: forall n_a2lij. Lens' (EnvelopeOpts n_a2lij) Int
+ Diagrams.TwoD.Model: ePoints :: forall n_a2loI. Lens' (EnvelopeOpts n_a2loI) Int
- Diagrams.TwoD.Model: oColor :: forall n_a2lhm. Lens' (OriginOpts n_a2lhm) (Colour Double)
+ Diagrams.TwoD.Model: oColor :: forall n_a2lnL. Lens' (OriginOpts n_a2lnL) (Colour Double)
- Diagrams.TwoD.Model: oMinSize :: forall n_a2lhm. Lens' (OriginOpts n_a2lhm) n_a2lhm
+ Diagrams.TwoD.Model: oMinSize :: forall n_a2lnL. Lens' (OriginOpts n_a2lnL) n_a2lnL
- Diagrams.TwoD.Model: oScale :: forall n_a2lhm. Lens' (OriginOpts n_a2lhm) n_a2lhm
+ Diagrams.TwoD.Model: oScale :: forall n_a2lnL. Lens' (OriginOpts n_a2lnL) n_a2lnL
- Diagrams.TwoD.Model: tColor :: forall n_a2ll8. Lens' (TraceOpts n_a2ll8) (Colour Double)
+ Diagrams.TwoD.Model: tColor :: forall n_a2lrx. Lens' (TraceOpts n_a2lrx) (Colour Double)
- Diagrams.TwoD.Model: tMinSize :: forall n_a2ll8. Lens' (TraceOpts n_a2ll8) n_a2ll8
+ Diagrams.TwoD.Model: tMinSize :: forall n_a2lrx. Lens' (TraceOpts n_a2lrx) n_a2lrx
- Diagrams.TwoD.Model: tPoints :: forall n_a2ll8. Lens' (TraceOpts n_a2ll8) Int
+ Diagrams.TwoD.Model: tPoints :: forall n_a2lrx. Lens' (TraceOpts n_a2lrx) Int
- Diagrams.TwoD.Model: tScale :: forall n_a2ll8. Lens' (TraceOpts n_a2ll8) n_a2ll8
+ Diagrams.TwoD.Model: tScale :: forall n_a2lrx. Lens' (TraceOpts n_a2lrx) n_a2lrx
- Diagrams.TwoD.Shapes: radiusBL :: forall d_a1IFJ. Lens' (RoundedRectOpts d_a1IFJ) d_a1IFJ
+ Diagrams.TwoD.Shapes: radiusBL :: forall d_a1IM8. Lens' (RoundedRectOpts d_a1IM8) d_a1IM8
- Diagrams.TwoD.Shapes: radiusBR :: forall d_a1IFJ. Lens' (RoundedRectOpts d_a1IFJ) d_a1IFJ
+ Diagrams.TwoD.Shapes: radiusBR :: forall d_a1IM8. Lens' (RoundedRectOpts d_a1IM8) d_a1IM8
- Diagrams.TwoD.Shapes: radiusTL :: forall d_a1IFJ. Lens' (RoundedRectOpts d_a1IFJ) d_a1IFJ
+ Diagrams.TwoD.Shapes: radiusTL :: forall d_a1IM8. Lens' (RoundedRectOpts d_a1IM8) d_a1IM8
- Diagrams.TwoD.Shapes: radiusTR :: forall d_a1IFJ. Lens' (RoundedRectOpts d_a1IFJ) d_a1IFJ
+ Diagrams.TwoD.Shapes: radiusTR :: forall d_a1IM8. Lens' (RoundedRectOpts d_a1IM8) d_a1IM8
Files
- CHANGELOG.md +13/−0
- diagrams-lib.cabal +9/−9
- src/Diagrams/Backend/CmdLine.hs +1/−1
- src/Diagrams/Size.hs +1/−0
- src/Diagrams/TwoD/Arrow.hs +1/−1
- src/Diagrams/TwoD/Offset.hs +1/−1
- src/Diagrams/Util.hs +0/−1
CHANGELOG.md view
@@ -1,3 +1,16 @@+## [v1.4.5](https://github.com/diagrams/diagrams-lib/tree/v1.4.4-r2) (2021-12-16)++- Allow `base-4.16` (tested with GHC 9.2.1)+- Allow `semigroups-0.20`, `lens-5.1`, `hashable-1.4`,+ `transformers-0.6`+- Add `Eq` instance for `SizeSpec`++## [v1.4.4-r1](https://github.com/diagrams/diagrams-lib/tree/v1.4.4-r1) (2021-06-05)++- Bumps to dependency upper bounds:+ - Allow `tasty-1.4`+ - Allow `bytestring-0.11`+ ## [v1.4.4](https://github.com/diagrams/diagrams-lib/tree/v1.4.4) (2021-05-24) - Bumps to upper bounds, to allow building with:
diagrams-lib.cabal view
@@ -1,5 +1,5 @@ Name: diagrams-lib-Version: 1.4.4+Version: 1.4.5 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@@ -21,7 +21,7 @@ Cabal-version: 1.18 Extra-source-files: CHANGELOG.md, README.markdown, diagrams/*.svg Extra-doc-files: diagrams/*.svg-Tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1+Tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1 || ==9.2.1 Source-repository head type: git location: http://github.com/diagrams/diagrams-lib.git@@ -100,10 +100,10 @@ Diagrams.TwoD.Types, Diagrams.TwoD.Vector, Diagrams.Util- Build-depends: base >= 4.9 && < 4.16,+ Build-depends: base >= 4.9 && < 4.17, containers >= 0.3 && < 0.7, array >= 0.3 && < 0.6,- semigroups >= 0.3.4 && < 0.20,+ semigroups >= 0.3.4 && < 0.21, monoid-extras >= 0.6 && < 0.7, dual-tree >= 0.2 && < 0.3, diagrams-core >= 1.4 && < 1.6,@@ -113,12 +113,12 @@ data-default-class < 0.2, fingertree >= 0.1 && < 0.2, intervals >= 0.7 && < 0.10,- lens >= 4.6 && < 5.1,+ lens >= 4.6 && < 5.2, tagged >= 0.7, optparse-applicative >= 0.11 && < 0.17, filepath, JuicyPixels >= 3.3.4 && < 3.4,- hashable >= 1.1 && < 1.4,+ hashable >= 1.1 && < 1.5, linear >= 1.20.1 && < 1.22, adjunctions >= 4.0 && < 5.0, distributive >=0.2.2 && < 1.0,@@ -128,11 +128,11 @@ unordered-containers >= 0.2 && < 0.3, text >= 0.7.1 && < 1.3, mtl >= 2.0 && < 2.3,- transformers >= 0.3.0 && < 0.6.0,+ transformers >= 0.3.0 && < 0.7.0, profunctors >= 5.0 && < 6.0, exceptions >= 0.6 && < 1.0, cereal >=0.4.1.1 && <0.6,- bytestring >=0.9 && <0.11+ bytestring >=0.9 && <0.12 if impl(ghc < 7.6) Build-depends: ghc-prim if !impl(ghc >= 8.0)@@ -161,7 +161,7 @@ , Instances hs-source-dirs: test build-depends: base,- tasty >= 0.10 && < 1.3,+ tasty >= 0.10 && < 1.5, tasty-hunit >= 0.9.2 && < 0.11, tasty-quickcheck >= 0.8 && < 0.11, QuickCheck >= 2.7,
src/Diagrams/Backend/CmdLine.hs view
@@ -23,7 +23,7 @@ -- executables. -- -- For a tutorial on command-line diagram creation see--- <http://projects.haskell.org/diagrams/doc/cmdline.html>.+-- <https://diagrams.github.io/doc/cmdline.html>. -- -----------------------------------------------------------------------------
src/Diagrams/Size.hs view
@@ -67,6 +67,7 @@ -- the dimensions. newtype SizeSpec v n = SizeSpec (v n) deriving (+ Eq, Typeable, Functor, Generic,
src/Diagrams/TwoD/Arrow.hs view
@@ -18,7 +18,7 @@ -- -- Drawing arrows in two dimensions. For a tutorial on drawing arrows -- using this module, see the diagrams website:--- <http://projects.haskell.org/diagrams/doc/arrow.html>.+-- <https://diagrams.github.io/doc/arrow.html>. -- -----------------------------------------------------------------------------
src/Diagrams/TwoD/Offset.hs view
@@ -19,7 +19,7 @@ -- -- Compute offsets to segments in two dimensions. More details can be -- found in the manual at--- <http://projects.haskell.org/diagrams/doc/manual.html#offsets-of-segments-trails-and-paths>.+-- <https://diagrams.github.io/doc/manual.html#offsets-of-segments-trails-and-paths>. -- ----------------------------------------------------------------------------- module Diagrams.TwoD.Offset
src/Diagrams/Util.hs view
@@ -41,7 +41,6 @@ import Control.Monad.Trans.Maybe import Data.Default.Class import Data.List-import Data.List.Lens import Data.Maybe import Data.Monoid import System.Directory