diagrams-rasterific 1.5 → 1.5.0.1
raw patch · 4 files changed
+30/−23 lines, 4 filesdep −data-defaultdep −lensdep ~basedep ~containersdep ~diagrams-libPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies removed: data-default, lens
Dependency ranges changed: base, containers, diagrams-lib
API changes (from Hackage documentation)
- Diagrams.Backend.Rasterific: data () => GifLooping
+ Diagrams.Backend.Rasterific: data GifLooping
- Diagrams.Backend.Rasterific: data () => PaletteOptions
+ Diagrams.Backend.Rasterific: data PaletteOptions
Files
- CHANGELOG.md +11/−0
- diagrams-rasterific.cabal +12/−17
- src/Diagrams/Backend/Rasterific.hs +4/−3
- src/Diagrams/Backend/Rasterific/CmdLine.hs +3/−3
CHANGELOG.md view
@@ -1,3 +1,14 @@+## [v1.5.0.1](https://github.com/diagrams/diagrams-rasterific/tree/v1.5.0.1) (2026-11-10)++- Allow `base-4.22`, `diagrams-lib-1.6`, and `containers-0.8`+- Remove unnecessary dependencies+- Test on GHC 9.14+- Fix warnings++## [v1.5-r1](https://github.com/diagrams/diagrams-rasterific/tree/v1.5-r1) (2025-06-13)++- Allow `optparse-applicative-0.19`+ ## [v1.5](https://github.com/diagrams/diagrams-rasterific/tree/v1.5) (2025-03-28) - allow `base-4.21`
diagrams-rasterific.cabal view
@@ -1,5 +1,5 @@ name: diagrams-rasterific-version: 1.5+version: 1.5.0.1 synopsis: Rasterific backend for diagrams. description: A full-featured backend for rendering diagrams using the Rasterific rendering engine.@@ -13,7 +13,7 @@ build-type: Simple extra-source-files: fonts/*.ttf extra-doc-files: README.md, CHANGELOG.md-tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2 || ==9.10.1 || ==9.12.1+tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.7 || ==9.8.4 || ==9.10.3 || ==9.12.4 || ==9.14.1 cabal-version: 1.18 Source-repository head type: git@@ -25,19 +25,17 @@ Diagrams.Backend.Rasterific.Text hs-source-dirs: src other-modules: Paths_diagrams_rasterific- build-depends: base >= 4.2 && < 4.22,+ build-depends: base >= 4.2 && < 4.23, diagrams-core >= 1.4 && < 1.6,- diagrams-lib >= 1.4 && < 1.6,+ diagrams-lib >= 1.4 && < 1.7, hashable >= 1.1 && < 1.6, Rasterific >= 0.7.4 && < 0.8, FontyFruity >= 0.5 && < 0.6, JuicyPixels >= 3.1.5 && < 3.4,- lens >= 4.0 && < 5.4, mtl >= 2.1 && < 2.4,- data-default >= 0.8 && < 0.9,- containers >= 0.5 && < 0.8,+ containers >= 0.5 && < 0.9, filepath >= 1.2 && < 1.6,- optparse-applicative >= 0.13 && < 0.19,+ optparse-applicative >= 0.13 && < 0.20, bytestring >= 0.9 && < 0.13, file-embed >= 0.0 && < 0.1 @@ -48,10 +46,9 @@ type: exitcode-stdio-1.0 main-is: test-render.hs hs-source-dirs: test- build-depends: base >= 4.2 && < 4.22,+ build-depends: base >= 4.2 && < 4.23, diagrams-rasterific,- diagrams-core >= 1.4 && < 1.6,- diagrams-lib >= 1.4 && < 1.6+ diagrams-lib >= 1.4 && < 1.7 ghc-options: -Wall default-language: Haskell2010 @@ -59,10 +56,9 @@ type: exitcode-stdio-1.0 main-is: test-widths.hs hs-source-dirs: test- build-depends: base >= 4.2 && < 4.22,+ build-depends: base >= 4.2 && < 4.23, diagrams-rasterific,- diagrams-core >= 1.4 && < 1.6,- diagrams-lib >= 1.4 && < 1.6+ diagrams-lib >= 1.4 && < 1.7 ghc-options: -Wall default-language: Haskell2010 @@ -70,9 +66,8 @@ type: exitcode-stdio-1.0 main-is: test-size.hs hs-source-dirs: test- build-depends: base >= 4.2 && < 4.22,+ build-depends: base >= 4.2 && < 4.23, diagrams-rasterific,- diagrams-core >= 1.4 && < 1.6,- diagrams-lib >= 1.4 && < 1.6+ diagrams-lib >= 1.4 && < 1.7 ghc-options: -Wall default-language: Haskell2010
src/Diagrams/Backend/Rasterific.hs view
@@ -140,7 +140,6 @@ import Data.Hashable (Hashable (..)) import Data.Maybe (fromMaybe) import Data.Tree-import Data.Typeable import Data.Word (Word8) import System.FilePath (takeExtension)@@ -152,7 +151,7 @@ -- backend you wanted to use, and (2) as an argument to the -- 'Backend' and 'Renderable' type classes. data Rasterific = Rasterific- deriving (Eq,Ord,Read,Show,Typeable)+ deriving (Eq,Ord,Read,Show) type B = Rasterific @@ -321,7 +320,9 @@ rasterificMatTransf :: TypeableFloat n => T2 n -> R.Transformation rasterificMatTransf tr = R.Transformation a c e b d f where- [[a, b], [c, d], [e, f]] = map realToFrac <$> matrixHomRep tr+ (a, b, c, d, e, f) = case map realToFrac <$> matrixHomRep tr of+ [[a', b'], [c', d'], [e', f']] -> (a', b', c', d', e', f')+ _ -> (0, 0, 0, 0, 0, 0) -- Note: Using view patterns confuses ghc to think there are missing patterns, -- so we avoid them here.
src/Diagrams/Backend/Rasterific/CmdLine.hs view
@@ -83,10 +83,10 @@ import Diagrams.Backend.CmdLine import Diagrams.Backend.Rasterific import Diagrams.Prelude hiding (height, interval,- output, width, option)+ output, width) import qualified Data.ByteString.Lazy as L (writeFile)-+import qualified Options.Applicative as Opt import Options.Applicative -- | 'mainWith' specialised to 'Diagram' 'Rasterific'.@@ -180,7 +180,7 @@ <*> switch ( long "looping-off" <> help "Turn looping off" )- <*> ( optional . option auto)+ <*> ( optional . Opt.option auto) ( long "loop-repeat" <> help "Number of times to repeat" )