packages feed

ihaskell-diagrams 0.3.0.0 → 0.3.1.0

raw patch · 4 files changed

+8/−7 lines, 4 filessetup-changed

Files

IHaskell/Display/Diagrams.hs view
@@ -34,11 +34,11 @@   renderCairo filename (mkSizeSpec2D (Just imgWidth) (Just imgHeight)) renderable    -- Convert to base64.-  imgData <- readFile filename+  imgData <- Char.readFile filename   let value =         case format of-          PNG -> png (floor imgWidth) (floor imgHeight) $ base64 (Char.pack imgData)-          SVG -> svg imgData+          PNG -> png (floor imgWidth) (floor imgHeight) $ base64 imgData+          SVG -> svg (Char.unpack imgData)    return value 
IHaskell/Display/Diagrams/Animation.hs view
@@ -48,8 +48,8 @@   mainRender (diagOpts, gifOpts) frameSet    -- Convert to ascii represented base64 encoding-  imgData <- readFile filename-  return . T.unpack . base64 . CBS.pack $ imgData+  imgData <- CBS.readFile filename+  return . T.unpack . base64 $ imgData  -- Rendering hint. animation :: Animation Cairo V2 Double -> Animation Cairo V2 Double
Setup.hs view
@@ -1,2 +1,3 @@-import Distribution.Simple+import           Distribution.Simple+ main = defaultMain
ihaskell-diagrams.cabal view
@@ -7,7 +7,7 @@ -- PVP summary:      +-+------- breaking API changes --                   | | +----- non-breaking API additions --                   | | | +--- code changes with no API change-version:             0.3.0.0+version:             0.3.1.0  -- A short (one-line) description of the package. synopsis:            IHaskell display instances for diagram types