ihaskell-plot 0.2.0.0 → 0.3.0.0
raw patch · 2 files changed
+5/−9 lines, 2 filesdep −classy-prelude
Dependencies removed: classy-prelude
Files
- IHaskell/Display/Plot.hs +4/−7
- ihaskell-plot.cabal +1/−2
IHaskell/Display/Plot.hs view
@@ -1,18 +1,15 @@-{-# LANGUAGE NoImplicitPrelude #-}- module IHaskell.Display.Plot where -import ClassyPrelude- import qualified Data.ByteString.Char8 as Char- import Graphics.Rendering.Plot+import Control.Monad (void)+import Control.Applicative ((<$>)) import IHaskell.Display instance IHaskellDisplay (Figure a) where display fig = do- let figure = fig >> return ()+ let figure = void fig pngDisp <- figureData figure PNG svgDisp <- figureData figure SVG return $ Display [pngDisp, svgDisp]@@ -31,7 +28,7 @@ writeFigure format fname (w, h) figure -- Read back, and convert to base64.- imgData <- readFile fname+ imgData <- Char.pack <$> readFile fname let value = case format of PNG -> png w h $ base64 imgData
ihaskell-plot.cabal view
@@ -7,7 +7,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.2.0.0+version: 0.3.0.0 -- A short (one-line) description of the package. synopsis: IHaskell display instance for Plot (from plot package)@@ -59,7 +59,6 @@ -- Other library packages from which modules are imported. build-depends: base >=4.6 && <4.9,- classy-prelude >= 0.10.5, plot, bytestring, ihaskell >= 0.6.2