diagrams-contrib 1.4.5 → 1.4.5.1
raw patch · 13 files changed
+25/−49 lines, 13 filesdep ~QuickCheckdep ~basedep ~containersPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: QuickCheck, base, containers, hashable, lens, linear, mtl, text
API changes (from Hackage documentation)
- Diagrams.TwoD.Grid: gridLL :: forall n_apLM. Lens' (GridOpts n_apLM) (V2 n_apLM)
+ Diagrams.TwoD.Grid: gridLL :: forall n_apSX. Lens' (GridOpts n_apSX) (V2 n_apSX)
- Diagrams.TwoD.Grid: gridLR :: forall n_apLM. Lens' (GridOpts n_apLM) (V2 n_apLM)
+ Diagrams.TwoD.Grid: gridLR :: forall n_apSX. Lens' (GridOpts n_apSX) (V2 n_apSX)
- Diagrams.TwoD.Grid: gridLineWidth :: forall n_apLM. Lens' (GridOpts n_apLM) (Measure n_apLM)
+ Diagrams.TwoD.Grid: gridLineWidth :: forall n_apSX. Lens' (GridOpts n_apSX) (Measure n_apSX)
- Diagrams.TwoD.Grid: gridUL :: forall n_apLM. Lens' (GridOpts n_apLM) (V2 n_apLM)
+ Diagrams.TwoD.Grid: gridUL :: forall n_apSX. Lens' (GridOpts n_apSX) (V2 n_apSX)
- Diagrams.TwoD.Grid: gridXColour :: forall n_apLM. Lens' (GridOpts n_apLM) (Colour Double)
+ Diagrams.TwoD.Grid: gridXColour :: forall n_apSX. Lens' (GridOpts n_apSX) (Colour Double)
- Diagrams.TwoD.Grid: gridYColour :: forall n_apLM. Lens' (GridOpts n_apLM) (Colour Double)
+ Diagrams.TwoD.Grid: gridYColour :: forall n_apSX. Lens' (GridOpts n_apSX) (Colour Double)
- Diagrams.TwoD.Grid: highLightLineColour :: forall n_apLL. Lens' (HighlightLineOpts n_apLL) (Colour Double)
+ Diagrams.TwoD.Grid: highLightLineColour :: forall n_apSW. Lens' (HighlightLineOpts n_apSW) (Colour Double)
- Diagrams.TwoD.Grid: highLightLineDashingOffset :: forall n_apLL. Lens' (HighlightLineOpts n_apLL) (Measure n_apLL)
+ Diagrams.TwoD.Grid: highLightLineDashingOffset :: forall n_apSW. Lens' (HighlightLineOpts n_apSW) (Measure n_apSW)
- Diagrams.TwoD.Grid: highLightLineDashingOnOff :: forall n_apLL. Lens' (HighlightLineOpts n_apLL) [Measure n_apLL]
+ Diagrams.TwoD.Grid: highLightLineDashingOnOff :: forall n_apSW. Lens' (HighlightLineOpts n_apSW) [Measure n_apSW]
- Diagrams.TwoD.Grid: highLightLineWidth :: forall n_apLL. Lens' (HighlightLineOpts n_apLL) (Measure n_apLL)
+ Diagrams.TwoD.Grid: highLightLineWidth :: forall n_apSW. Lens' (HighlightLineOpts n_apSW) (Measure n_apSW)
- Diagrams.TwoD.Layout.Tree: edgeLen :: forall n_aBzU. Lens' (ForceLayoutTreeOpts n_aBzU) n_aBzU
+ Diagrams.TwoD.Layout.Tree: edgeLen :: forall n_aBHd. Lens' (ForceLayoutTreeOpts n_aBHd) n_aBHd
- Diagrams.TwoD.Layout.Tree: forceLayoutOpts :: forall n_aBzU. Lens' (ForceLayoutTreeOpts n_aBzU) (ForceLayoutOpts n_aBzU)
+ Diagrams.TwoD.Layout.Tree: forceLayoutOpts :: forall n_aBHd. Lens' (ForceLayoutTreeOpts n_aBHd) (ForceLayoutOpts n_aBHd)
- Diagrams.TwoD.Layout.Tree: slHSep :: forall n_aB3S a_aB3T. Lens' (SymmLayoutOpts n_aB3S a_aB3T) n_aB3S
+ Diagrams.TwoD.Layout.Tree: slHSep :: forall n_aBbb a_aBbc. Lens' (SymmLayoutOpts n_aBbb a_aBbc) n_aBbb
- Diagrams.TwoD.Layout.Tree: slHeight :: forall n_aB3S a_aB3T. Lens' (SymmLayoutOpts n_aB3S a_aB3T) (a_aB3T -> (n_aB3S, n_aB3S))
+ Diagrams.TwoD.Layout.Tree: slHeight :: forall n_aBbb a_aBbc. Lens' (SymmLayoutOpts n_aBbb a_aBbc) (a_aBbc -> (n_aBbb, n_aBbb))
- Diagrams.TwoD.Layout.Tree: slVSep :: forall n_aB3S a_aB3T. Lens' (SymmLayoutOpts n_aB3S a_aB3T) n_aB3S
+ Diagrams.TwoD.Layout.Tree: slVSep :: forall n_aBbb a_aBbc. Lens' (SymmLayoutOpts n_aBbb a_aBbc) n_aBbb
- Diagrams.TwoD.Layout.Tree: slWidth :: forall n_aB3S a_aB3T. Lens' (SymmLayoutOpts n_aB3S a_aB3T) (a_aB3T -> (n_aB3S, n_aB3S))
+ Diagrams.TwoD.Layout.Tree: slWidth :: forall n_aBbb a_aBbc. Lens' (SymmLayoutOpts n_aBbb a_aBbc) (a_aBbc -> (n_aBbb, n_aBbb))
- Diagrams.TwoD.Layout.Tree: springK :: forall n_aBzU. Lens' (ForceLayoutTreeOpts n_aBzU) n_aBzU
+ Diagrams.TwoD.Layout.Tree: springK :: forall n_aBHd. Lens' (ForceLayoutTreeOpts n_aBHd) n_aBHd
- Diagrams.TwoD.Layout.Tree: staticK :: forall n_aBzU. Lens' (ForceLayoutTreeOpts n_aBzU) n_aBzU
+ Diagrams.TwoD.Layout.Tree: staticK :: forall n_aBHd. Lens' (ForceLayoutTreeOpts n_aBHd) n_aBHd
- Diagrams.TwoD.Path.Metafont.Types: c1 :: forall n_aKcb. Lens' (ControlJoin n_aKcb) (P2 n_aKcb)
+ Diagrams.TwoD.Path.Metafont.Types: c1 :: forall n_aKju. Lens' (ControlJoin n_aKju) (P2 n_aKju)
- Diagrams.TwoD.Path.Metafont.Types: c2 :: forall n_aKcb. Lens' (ControlJoin n_aKcb) (P2 n_aKcb)
+ Diagrams.TwoD.Path.Metafont.Types: c2 :: forall n_aKju. Lens' (ControlJoin n_aKju) (P2 n_aKju)
- Diagrams.TwoD.Path.Metafont.Types: d1 :: forall d_aK7M j_aK7N. Lens' (PathJoin d_aK7M j_aK7N) d_aK7M
+ Diagrams.TwoD.Path.Metafont.Types: d1 :: forall d_aKf5 j_aKf6. Lens' (PathJoin d_aKf5 j_aKf6) d_aKf5
- Diagrams.TwoD.Path.Metafont.Types: d2 :: forall d_aK7M j_aK7N. Lens' (PathJoin d_aK7M j_aK7N) d_aK7M
+ Diagrams.TwoD.Path.Metafont.Types: d2 :: forall d_aKf5 j_aKf6. Lens' (PathJoin d_aKf5 j_aKf6) d_aKf5
- Diagrams.TwoD.Path.Metafont.Types: j :: forall d_aK7M j_aK7N j_aKbz. Lens (PathJoin d_aK7M j_aK7N) (PathJoin d_aK7M j_aKbz) j_aK7N j_aKbz
+ Diagrams.TwoD.Path.Metafont.Types: j :: forall d_aKf5 j_aKf6 j_aKiS. Lens (PathJoin d_aKf5 j_aKf6) (PathJoin d_aKf5 j_aKiS) j_aKf6 j_aKiS
- Diagrams.TwoD.Path.Metafont.Types: loop :: forall d_aKmU j_aKmV n_aKmW. Lens' (MFPath d_aKmU j_aKmV n_aKmW) Bool
+ Diagrams.TwoD.Path.Metafont.Types: loop :: forall d_aKud j_aKue n_aKuf. Lens' (MFPath d_aKud j_aKue n_aKuf) Bool
- Diagrams.TwoD.Path.Metafont.Types: pj :: forall d_aKmX j_aKmY n_aKmZ d_aKvZ j_aKw0. Lens (MetafontSegment d_aKmX j_aKmY n_aKmZ) (MetafontSegment d_aKvZ j_aKw0 n_aKmZ) (PathJoin d_aKmX j_aKmY) (PathJoin d_aKvZ j_aKw0)
+ Diagrams.TwoD.Path.Metafont.Types: pj :: forall d_aKug j_aKuh n_aKui d_aKDi j_aKDj. Lens (MetafontSegment d_aKug j_aKuh n_aKui) (MetafontSegment d_aKDi j_aKDj n_aKui) (PathJoin d_aKug j_aKuh) (PathJoin d_aKDi j_aKDj)
- Diagrams.TwoD.Path.Metafont.Types: segs :: forall d_aKmU j_aKmV n_aKmW d_aKyt j_aKyu n_aKyv. Lens (MFPath d_aKmU j_aKmV n_aKmW) (MFPath d_aKyt j_aKyu n_aKyv) [MetafontSegment d_aKmU j_aKmV n_aKmW] [MetafontSegment d_aKyt j_aKyu n_aKyv]
+ Diagrams.TwoD.Path.Metafont.Types: segs :: forall d_aKud j_aKue n_aKuf d_aKFM j_aKFN n_aKFO. Lens (MFPath d_aKud j_aKue n_aKuf) (MFPath d_aKFM j_aKFN n_aKFO) [MetafontSegment d_aKud j_aKue n_aKuf] [MetafontSegment d_aKFM j_aKFN n_aKFO]
- Diagrams.TwoD.Path.Metafont.Types: t1 :: forall n_aKcc. Lens' (TensionJoin n_aKcc) (Tension n_aKcc)
+ Diagrams.TwoD.Path.Metafont.Types: t1 :: forall n_aKjv. Lens' (TensionJoin n_aKjv) (Tension n_aKjv)
- Diagrams.TwoD.Path.Metafont.Types: t2 :: forall n_aKcc. Lens' (TensionJoin n_aKcc) (Tension n_aKcc)
+ Diagrams.TwoD.Path.Metafont.Types: t2 :: forall n_aKjv. Lens' (TensionJoin n_aKjv) (Tension n_aKjv)
- Diagrams.TwoD.Path.Metafont.Types: x1 :: forall d_aKmX j_aKmY n_aKmZ. Lens' (MetafontSegment d_aKmX j_aKmY n_aKmZ) (P2 n_aKmZ)
+ Diagrams.TwoD.Path.Metafont.Types: x1 :: forall d_aKug j_aKuh n_aKui. Lens' (MetafontSegment d_aKug j_aKuh n_aKui) (P2 n_aKui)
- Diagrams.TwoD.Path.Metafont.Types: x2 :: forall d_aKmX j_aKmY n_aKmZ. Lens' (MetafontSegment d_aKmX j_aKmY n_aKmZ) (P2 n_aKmZ)
+ Diagrams.TwoD.Path.Metafont.Types: x2 :: forall d_aKug j_aKuh n_aKui. Lens' (MetafontSegment d_aKug j_aKuh n_aKui) (P2 n_aKui)
- Diagrams.TwoD.Sunburst: colors :: forall n_aZG6. Lens' (SunburstOpts n_aZG6) [Colour Double]
+ Diagrams.TwoD.Sunburst: colors :: forall n_aZNs. Lens' (SunburstOpts n_aZNs) [Colour Double]
- Diagrams.TwoD.Sunburst: radius :: forall n_aZG6. Lens' (SunburstOpts n_aZG6) n_aZG6
+ Diagrams.TwoD.Sunburst: radius :: forall n_aZNs. Lens' (SunburstOpts n_aZNs) n_aZNs
- Diagrams.TwoD.Sunburst: sectionWidth :: forall n_aZG6. Lens' (SunburstOpts n_aZG6) n_aZG6
+ Diagrams.TwoD.Sunburst: sectionWidth :: forall n_aZNs. Lens' (SunburstOpts n_aZNs) n_aZNs
Files
- CHANGES.markdown +8/−0
- diagrams-contrib.cabal +7/−7
- src/Diagrams/Anchors.hs +0/−4
- src/Diagrams/Layout/Wrap.hs +1/−0
- src/Diagrams/Lens.hs +0/−5
- src/Diagrams/TwoD/Layout/Constrained.hs +1/−1
- src/Diagrams/TwoD/Layout/Tree.hs +0/−9
- src/Diagrams/TwoD/Path/IteratedSubset.hs +1/−5
- src/Diagrams/TwoD/Path/Metafont.hs +1/−0
- src/Diagrams/TwoD/Path/Metafont/Parser.hs +1/−1
- src/Diagrams/TwoD/Path/Metafont/Types.hs +3/−12
- src/Diagrams/TwoD/Path/Turtle/Internal.hs +1/−0
- src/Diagrams/TwoD/Tilings.hs +1/−5
CHANGES.markdown view
@@ -1,8 +1,16 @@+1.4.5.1 (10 July 2023)+----------------------++- Allow `base-4.18`, `mtl-2.3`, and test with GHC 9.6+ 1.4.5 (12 Nov 2022) ------------------- - `TwoD.Layout.Grid`: Return `mempty` in `gridCat` and `gridSnake` on empty input ([#89](https://github.com/diagrams/diagrams-contrib/pull/89))++- Hackage revisions+ - r1 (3 Dec 2022): allow `linear-1.22` 1.4.4 (12 Nov 2019) -------------------
diagrams-contrib.cabal view
@@ -1,5 +1,5 @@ name: diagrams-contrib-version: 1.4.5+version: 1.4.5.1 synopsis: Collection of user contributions to diagrams EDSL description: A collection of user contributions for diagrams, an embedded domain-specific language for generation@@ -13,9 +13,9 @@ category: Graphics build-type: Simple cabal-version: 1.18-extra-source-files: README.markdown, CHANGES.markdown, diagrams/*.svg, CONTRIBUTORS-extra-doc-files: diagrams/*.svg-tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.4 || ==9.4.1+extra-source-files: README.markdown, diagrams/*.svg, CONTRIBUTORS+extra-doc-files: diagrams/*.svg, CHANGES.markdown+tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.7 || ==9.4.5 || ==9.6.1 Source-repository head type: git location: http://github.com/diagrams/diagrams-contrib.git@@ -51,8 +51,8 @@ Diagrams.TwoD.Path.Metafont.Internal Diagrams.TwoD.Path.Metafont.Combinators Diagrams.TwoD.Path.Metafont.Parser- build-depends: base >= 4.8 && < 4.18,- mtl >= 2.0 && < 2.3,+ build-depends: base >= 4.8 && < 4.19,+ mtl >= 2.0 && < 2.4, mtl-compat >= 0.2.1 && < 0.3, containers > 0.4 && < 0.7, split >= 0.2.1 && < 0.3,@@ -63,7 +63,7 @@ diagrams-lib >= 1.4 && < 1.5, diagrams-solve >= 0.1 && < 0.2, lens >= 4.0 && < 5.3,- linear >= 1.11.3 && < 1.22,+ linear >= 1.11.3 && < 1.23, force-layout >= 0.4 && < 0.5, data-default >= 0.5.2 && < 0.8, MonadRandom >= 0.1.8 && < 0.7,
src/Diagrams/Anchors.hs view
@@ -1,4 +1,3 @@-{-# LANGUAGE CPP #-} {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-}@@ -59,9 +58,6 @@ import Data.Maybe (fromJust, fromMaybe) import qualified Data.Set as Set import Data.Typeable (Typeable)-#if !MIN_VERSION_base(4,11,0)-import Data.Semigroup-#endif import Linear.Vector import Linear.V2
src/Diagrams/Layout/Wrap.hs view
@@ -1,6 +1,7 @@ {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE TypeOperators #-} ------------------------------------------------------------------------ -- |
src/Diagrams/Lens.hs view
@@ -1,4 +1,3 @@-{-# LANGUAGE CPP #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-}@@ -35,10 +34,6 @@ , _lineSegments ) where -#if __GLASGOW_HASKELL__ < 710-import Control.Applicative-import Data.Foldable-#endif import Diagrams.BoundingBox import Diagrams.Prelude
src/Diagrams/TwoD/Layout/Constrained.hs view
@@ -140,7 +140,7 @@ import qualified Control.Lens as L import qualified Control.Lens.Extras as L-import Control.Monad.Except+import Control.Monad (zipWithM, zipWithM_) import Control.Monad.State import qualified Data.Foldable as F import Data.Hashable
src/Diagrams/TwoD/Layout/Tree.hs view
@@ -1,4 +1,3 @@-{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-}@@ -170,14 +169,6 @@ import Diagrams import Linear ((*^)) import Linear.Affine--#if !MIN_VERSION_base(4,11,0)-import Data.Semigroup-#endif--#if __GLASGOW_HASKELL__ < 710-import Control.Applicative-#endif ------------------------------------------------------------ -- Binary trees
src/Diagrams/TwoD/Path/IteratedSubset.hs view
@@ -1,8 +1,8 @@-{-# LANGUAGE CPP #-} {-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE TypeOperators #-} ----------------------------------------------------------------------------- -- |@@ -534,10 +534,6 @@ -- code and modify it to suit. randITC :: (MonadRandom m,-#if MIN_VERSION_base(4,9,0)-#else- Applicative m,-#endif Ord n, Floating n, Random n) => m (IterTrailConfig n) randITC = do
src/Diagrams/TwoD/Path/Metafont.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE GADTs #-} {-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE TypeOperators #-} ----------------------------------------------------------------------------- -- |
src/Diagrams/TwoD/Path/Metafont/Parser.hs view
@@ -8,7 +8,7 @@ import Text.Parsec import Text.Parsec.Text -import Diagrams.Prelude hiding (option)+import Diagrams.Prelude hiding (option) import Diagrams.TwoD.Path.Metafont.Types num :: Read n => Parser n
src/Diagrams/TwoD/Path/Metafont/Types.hs view
@@ -1,4 +1,3 @@-{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE FlexibleInstances #-}@@ -8,14 +7,7 @@ module Diagrams.TwoD.Path.Metafont.Types where import Control.Lens hiding (( # ))-#if __GLASGOW_HASKELL__ < 710-import Data.Monoid-#endif -#if !MIN_VERSION_base(4,11,0)-import Data.Semigroup-#endif- import Diagrams.Direction import Diagrams.TwoD.Types @@ -111,11 +103,10 @@ instance Monoid (PathJoin (Maybe (PathDir n)) (Maybe (BasicJoin n))) where -- | The default join, with no directions specified, and both tensions 1. mempty = PJ Nothing Nothing Nothing- l `mappend` r = PJ (c (l^.d1) (r^.d1)) (c (l^.j) (r^.j)) (c (l^.d2) (r^.d2))++instance Semigroup (PathJoin (Maybe (PathDir n)) (Maybe (BasicJoin n))) where+ l <> r = PJ (c (l^.d1) (r^.d1)) (c (l^.j) (r^.j)) (c (l^.d2) (r^.d2)) where c a b = case b of Nothing -> a Just _ -> b--instance Semigroup (PathJoin (Maybe (PathDir n)) (Maybe (BasicJoin n))) where- (<>) = mappend
src/Diagrams/TwoD/Path/Turtle/Internal.hs view
@@ -2,6 +2,7 @@ {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeSynonymInstances #-} ----------------------------------------------------------------------------- -- |
src/Diagrams/TwoD/Tilings.hs view
@@ -1,4 +1,3 @@-{-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE ScopedTypeVariables #-}@@ -69,12 +68,9 @@ ) where +import Control.Monad (when, zipWithM_) import Control.Monad.State-#if __GLASGOW_HASKELL__ >= 704-import Control.Monad.Writer hiding ((<>))-#else import Control.Monad.Writer-#endif import Data.Function (on) import Data.List (mapAccumL, sort)