Chart-simple 1.2.4 → 1.3
raw patch · 2 files changed
+15/−9 lines, 2 filesdep ~Chartdep ~Chart-cairodep ~Chart-gtkPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: Chart, Chart-cairo, Chart-gtk
API changes (from Hackage documentation)
Files
Chart-simple.cabal view
@@ -1,13 +1,13 @@ Name: Chart-simple-Version: 1.2.4+Version: 1.3 License: BSD3 License-file: LICENSE Copyright: Tim Docker, 2006-2010 Author: Tim Docker <tim@dockerz.net> Maintainer: Tim Docker <tim@dockerz.net> Homepage: https://github.com/timbod7/haskell-chart/wiki-Synopsis: A wrapper for the chart library to assist with basic plots-Description: A wrapper for the chart library to assist with basic plots+Synopsis: A wrapper for the chart library to assist with basic plots (Deprecated - use the Easy module instead)+Description: A wrapper for the chart library to assist with basic plots (Deprecated - use the Easy module instead) Category: Graphics Cabal-Version: >= 1.6 Build-Type: Simple@@ -21,9 +21,9 @@ , colour >= 2.2.1 && < 2.4 , colour >= 2.2.1 , gtk >= 0.9.11- , Chart >= 1.2 && < 1.3- , Chart-cairo >= 1.2 && < 1.3- , Chart-gtk >= 1.2 && < 1.3+ , Chart >= 1.3 && < 1.4+ , Chart-cairo >= 1.3 && < 1.4+ , Chart-gtk >= 1.3 && < 1.4 Exposed-modules: Graphics.Rendering.Chart.Simple,
Graphics/Rendering/Chart/Simple/Internal.hs view
@@ -147,6 +147,7 @@ instance ToRenderable LayoutDDD where toRenderable = setPickFn nullPickFn . toRenderable +{-# DEPRECATED uplot "use Chart.Graphics.Rendering.Chart.Easy" #-} uplot :: [UPlot] -> LayoutDDD uplot us = LayoutDDD $ iplot $ nameDoubles $ evalfuncs us where@@ -184,6 +185,7 @@ -- that your arguments need to be in class PlotArg. And PlotArg consists -- of functions and [Double] and String and PlotKind or [PlotKind]. +{-# DEPRECATED plot "use Chart.Graphics.Rendering.Chart.Easy" #-} plot :: PlotType a => a plot = pl [] class PlotType t where@@ -195,6 +197,7 @@ -- | Save a plot as a PDF file. +{-# DEPRECATED plotPDF "use Chart.Graphics.Rendering.Chart.Easy" #-} plotPDF :: PlotPDFType a => String -> a plotPDF fn = pld fn [] class PlotPDFType t where@@ -204,6 +207,7 @@ -- | Save a plot as a postscript file. +{-# DEPRECATED plotPS "use Chart.Graphics.Rendering.Chart.Easy" #-} plotPS :: PlotPSType a => String -> a plotPS fn = pls fn [] class PlotPSType t where@@ -212,6 +216,7 @@ pls fn args = \ a -> pls fn (toUPlot a ++ args) -- | Save a plot as a png file.+{-# DEPRECATED plotPNG "use Chart.Graphics.Rendering.Chart.Easy" #-} plotPNG :: PlotPNGType a => String -> a plotPNG fn = plp fn [] @@ -271,21 +276,22 @@ instance PlotPDFType (IO a) where pld fn args = do- renderableToFile def{_fo_format=PDF,_fo_size=(640,480)} (layoutDddToRenderable $ uplot (reverse args)) fn+ renderableToFile def{_fo_format=PDF,_fo_size=(640,480)} fn (layoutDddToRenderable $ uplot (reverse args)) return undefined instance PlotPSType (IO a) where pls fn args = do- renderableToFile def{_fo_format=PS,_fo_size=(640,480)} (layoutDddToRenderable $ uplot (reverse args)) fn+ renderableToFile def{_fo_format=PS,_fo_size=(640,480)} fn (layoutDddToRenderable $ uplot (reverse args)) return undefined instance PlotPNGType (IO a) where plp fn args = do- renderableToFile def{_fo_format=PNG,_fo_size=(640,480)} (layoutDddToRenderable $ uplot (reverse args)) fn+ renderableToFile def{_fo_format=PNG,_fo_size=(640,480)} fn (layoutDddToRenderable $ uplot (reverse args)) return undefined -- | Display a plot on the screen. +{-# DEPRECATED plotWindow "use Chart.Graphics.Rendering.Chart.Easy" #-} plotWindow :: PlotWindowType a => a plotWindow = plw [] class PlotWindowType t where