static-canvas 0.2.0.2 → 0.2.0.3
raw patch · 2 files changed
+6/−6 lines, 2 filesdep ~basedep ~freedep ~mtlPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, free, mtl, text
API changes (from Hackage documentation)
Files
src/Graphics/Static/Interpreter.hs view
@@ -154,7 +154,7 @@ eval uniqId (Free (GlobalAlpha a1 c)) = do record [fromText uniqId, "Ctx.globalAlpha = (", jsDouble a1, ");"] eval uniqId c- + eval uniqId (Free (GlobalCompositeOperation a1 c)) = do record [fromText uniqId, "Ctx.globalCompositeOperation = ('", jsComposite a1, "');"] eval uniqId c@@ -188,7 +188,7 @@ record ["var image_", jsInt i, " = new Image(); image_" , jsInt i, ".src = ('", fromText a1, "');"] eval uniqId (k i)- + eval uniqId (Free (OnImageLoad a1 a2 c)) = do record ["image_", jsInt a1, ".onload = function() {", evalScript uniqId a2, "};"] eval uniqId c@@ -283,4 +283,4 @@ record [fromText uniqId, "Ctx.translate(", jsDouble a1, comma, jsDouble a2, ");"] eval uniqId c -eval uniqId (Pure x) = return x+eval _ (Pure x) = return x
static-canvas.cabal view
@@ -1,5 +1,5 @@ name: static-canvas-version: 0.2.0.2+version: 0.2.0.3 synopsis: DSL to generate HTML5 Canvas javascript. description: A simple DSL for writing HTML5 Canvas in haskell and converting it@@ -22,13 +22,13 @@ cabal-version: >=1.10 library- ghc-options: -Wall -rtsopts -O2+ ghc-options: -Wall exposed-modules: Graphics.Static Graphics.Static.ColorNames other-modules: Graphics.Static.Types Graphics.Static.Interpreter Graphics.Static.Javascript- build-depends: base >=4.5 && < 4.9,+ build-depends: base >=4.5 && < 4.10, mtl >= 2.1 && < 2.3, free >= 4.9 && < 4.13, text >=0.11 && < 1.3,