packages feed

diagrams-core 1.5.0 → 1.5.0.1

raw patch · 4 files changed

+16/−10 lines, 4 filesdep ~basedep ~lensdep ~linearPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base, lens, linear

API changes (from Hackage documentation)

- Diagrams.Core: data family Options b v n :: *;
- Diagrams.Core.Names: instance Diagrams.Core.Names.IsName GHC.Integer.Type.Integer
- Diagrams.Core.Types: data family Options b v n :: *;
- Diagrams.Core.Types: type family Result b v n :: *;
+ Diagrams.Core: data Options b v n :: *;
+ Diagrams.Core: data Render b v n :: *;
+ Diagrams.Core: type Result b v n :: *;
+ Diagrams.Core.Names: instance Diagrams.Core.Names.IsName GHC.Num.Integer.Integer
+ Diagrams.Core.Types: data Options b v n :: *;
+ Diagrams.Core.Types: data Render b v n :: *;
+ Diagrams.Core.Types: type Result b v n :: *;
- Diagrams.Core: type family Result b v n :: *;
+ Diagrams.Core: type family N a :: *

Files

CHANGELOG.md view
@@ -1,3 +1,9 @@+## [v1.5.0.1](https://github.com/diagrams/diagrams-core/tree/v1.5.0.1) (2022-08-27)++* Test with up to `base-4.17` and GHC 9.4+* Allow `lens-5.2`+* Fix documentation for `atLeast` and `atMost` (thanks to Igor Moreno)+ ## [v1.5.0](https://github.com/diagrams/diagrams-core/tree/v1.5.0) (2021-05-13)  * Updates for GHC 8.10 and 9.0
diagrams-core.cabal view
@@ -1,10 +1,10 @@ Name:                diagrams-core-Version:             1.5.0+Version:             1.5.0.1 Synopsis:            Core libraries for diagrams EDSL Description:         The core modules underlying diagrams,                      an embedded domain-specific language                      for compositional, declarative drawing.-Homepage:            http://projects.haskell.org/diagrams+Homepage:            https://diagrams.github.io License:             BSD3 License-file:        LICENSE Author:              Brent Yorgey@@ -15,7 +15,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, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.4, GHC == 9.0.1+Tested-with:         GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.4 || ==9.4.1 Source-repository head   type:     git   location: git://github.com/diagrams/diagrams-core.git@@ -36,13 +36,13 @@                        Diagrams.Core.Types,                        Diagrams.Core.V -  Build-depends:       base >= 4.11 && < 4.16,+  Build-depends:       base >= 4.11 && < 4.18,                        containers >= 0.4.2 && < 0.7,                        unordered-containers >= 0.2 && < 0.3,-                       semigroups >= 0.8.4 && < 0.20,-                       monoid-extras >= 0.3 && < 0.7,+                       semigroups >= 0.8.4 && < 0.21,+                       monoid-extras >= 0.6 && < 0.7,                        dual-tree >= 0.2 && < 0.3,-                       lens >= 4.0 && < 5.1,+                       lens >= 4.0 && < 5.3,                        linear >= 1.11.3 && < 1.22,                        adjunctions >= 4.0 && < 5.0,                        distributive >=0.2.2 && < 1.0,
src/Diagrams/Core.hs view
@@ -26,7 +26,7 @@ -- -- The best place to start when learning -- about diagrams\' types is the user manual:--- <http://projects.haskell.org/diagrams/doc/manual.html#type-reference>+-- <https://diagrams.github.io/doc/manual.html#type-reference> -- The following list shows which types are contained in each module of -- "Diagrams.Core". --
src/Diagrams/Core/Measure.hs view
@@ -78,11 +78,11 @@ scaleLocal :: Num n => n -> Measured n a -> Measured n a scaleLocal s = R.local (_1 *~ s) --- | Calculate the smaller of two measures.+-- | Calculate the larger of two measures. atLeast :: Ord n => Measure n -> Measure n -> Measure n atLeast = liftA2 max --- | Calculate the larger of two measures.+-- | Calculate the smaller of two measures. atMost :: Ord n => Measure n -> Measure n -> Measure n atMost = liftA2 min