packages feed

ihaskell-hvega 0.5.0.1 → 0.5.0.2

raw patch · 3 files changed

+14/−10 lines, 3 files

Files

CHANGELOG.md view
@@ -1,6 +1,10 @@ For the latest version of this document, please see [https://github.com/DougBurke/hvega/blob/master/ihaskell-hvega/CHANGELOG.md](https://github.com/DougBurke/hvega/blob/master/ihaskell-hvega/CHANGELOG.md). +## 0.5.0.2++Improve links in the haddock documentation. There are no code changes.+ ## 0.5.0.1  Support text 2.0.
ihaskell-hvega.cabal view
@@ -1,5 +1,5 @@ name:                ihaskell-hvega-version:             0.5.0.1+version:             0.5.0.2 synopsis:            IHaskell display instance for hvega types. description:         Support Vega-Lite visualizations in IHaskell notebooks. homepage:            https://github.com/DougBurke/hvega
src/IHaskell/Display/Hvega.hs view
@@ -26,18 +26,18 @@  import Graphics.Vega.VegaLite -vl1 = 'toVegaLite' ['description' desc, 'background' "white", 'dat' [], 'mark' 'Bar' 'barOpts', 'enc' []] where+vl1 = 'Graphics.Vega.VegaLite.toVegaLite' ['Graphics.Vega.VegaLite.description' desc, 'Graphics.Vega.VegaLite.background' "white", dat [], 'Graphics.Vega.VegaLite.mark' 'Graphics.Vega.VegaLite.Bar' barOpts, enc []] where     desc = "A very exciting bar chart" -    dat = 'dataFromRows' ['Parse' [("start", 'FoDate' "%Y-%m-%d")]]-          . 'dataRow' [("start", 'Str' "2011-03-25"), ("count", 'Number' 23)]+    dat = 'Graphics.Vega.VegaLite.dataFromRows' ['Graphics.Vega.VegaLite.Parse' [("start", 'Graphics.Vega.VegaLite.FoDate' "%Y-%m-%d")]]+          . 'Graphics.Vega.VegaLite.dataRow' [("start", 'Graphics.Vega.VegaLite.Str' "2011-03-25"), ("count", 'Graphics.Vega.VegaLite.Number' 23)]           . dataRow [("start", Str "2011-04-02"), ("count", Number 45)]           . dataRow [("start", Str "2011-04-12"), ("count", Number 3)] -    barOpts = ['MOpacity' 0.4, 'MColor' "teal"]+    barOpts = ['Graphics.Vega.VegaLite.MOpacity' 0.4, 'Graphics.Vega.VegaLite.MColor' "teal"] -    enc = 'encoding'-          . 'position' 'X' ['PName' "start", 'PmType' 'Temporal', 'PAxis' ['AxTitle' "Inception date"]]+    enc = 'Graphics.Vega.VegaLite.encoding'+          . 'Graphics.Vega.VegaLite.position' 'Graphics.Vega.VegaLite.X' ['Graphics.Vega.VegaLite.PName' "start", 'Graphics.Vega.VegaLite.PmType' 'Graphics.Vega.VegaLite.Temporal', 'Graphics.Vega.VegaLite.PAxis' ['Graphics.Vega.VegaLite.AxTitle' "Inception date"]]           . position Y [PName "count", PmType Quantitative] @ @@ -45,7 +45,7 @@  > vlShow vl1 -where @vlShow@ should be imported automatically by IHaskell.+where 'vlShow' should be imported automatically by IHaskell. -}  module IHaskell.Display.Hvega (vlShow, VegaLiteLab) where@@ -72,7 +72,7 @@ --   to the @vegaEmbed@ call. -- --   Note that local file access is __not__ guaranteed to work - e.g.---   @dataFromUrl@ where the file name refers to a local file -+--   'Graphics.Vega.VegaLite.dataFromUrl' where the file name refers to a local file - --   since the JavaScript @fs@ module may not be loaded. -- instance IHaskellDisplay VegaLite where@@ -133,7 +133,7 @@ --   a Jupyter notebook. -- --   Note that local file access is __not__ guaranteed to work - e.g.---   @dataFromUrl@ where the file name refers to a local file -+--   'Graphics.Vega.VegaLite.dataFromUrl' where the file name refers to a local file - --   since the JavaScript @fs@ module may not be loaded. -- --   It would be nice to create a PNG version for non-browser viewers,