charter 0.1.1.0 → 0.1.1.1
raw patch · 4 files changed
+29/−21 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- app/Examples/Auto.hs +3/−3
- charter.cabal +9/−9
- src/Charts.hs +14/−7
- src/Charts/Internal/Chart.hs +3/−2
app/Examples/Auto.hs view
@@ -4,10 +4,12 @@ module Examples.Auto where import qualified Data.Text as T-import Data.Aeson import Charts +main :: IO ()+main = serveChart 8080 myAutoChart+ myAutoChart :: Chart myAutoChart = autoChartWithHeaders defaultChartOptions BarChart headers myData where@@ -19,6 +21,4 @@ , ("C", 9, 25) , ("D", 8, 34) ]--
charter.cabal view
@@ -4,16 +4,16 @@ -- -- see: https://github.com/sol/hpack ----- hash: cf81c27c2154f32ddbe86abce94d1426deb270ad096348ad4ce50a26188e70e5+-- hash: 8915b5ff42971e3413f62497642d059ed7c6584f4c4b20da7d9fd2ace2f30af5 name: charter-version: 0.1.1.0-description: Please see the README on GitHub at <https://github.com/githubuser/charter#readme>-homepage: https://github.com/githubuser/charter#readme-bug-reports: https://github.com/githubuser/charter/issues-author: Author name here-maintainer: example@example.com-copyright: 2020 Author name here+version: 0.1.1.1+description: Please see the README on GitHub at <https://github.com/ChrisPenner/charter#readme>+homepage: https://github.com/ChrisPenner/charter#readme+bug-reports: https://github.com/ChrisPenner/charter/issues+author: Chris Penner+maintainer: christopher.penner@gmail.com+copyright: 2020 Chris Penner license: BSD3 license-file: LICENSE build-type: Simple@@ -25,7 +25,7 @@ source-repository head type: git- location: https://github.com/githubuser/charter+ location: https://github.com/ChrisPenner/charter library exposed-modules:
src/Charts.hs view
@@ -1,14 +1,21 @@-module Charts ( serveChart+module Charts ( + -- * Serving Charts+ serveChart , serveDynamicChart- , Chart- , Column(..)- , ChartOptions(..)- , ChartStyle(..)+ -- * Creating Charts+ -- ** Automatic Charts+ , autoChart+ , autoChartWithHeaders+ -- ** Manual Charts , buildChart+ -- * Chart Options , defaultChartOptions+ , ChartOptions(..) - , autoChart- , autoChartWithHeaders+ -- * Assorted Types+ , Chart+ , Column(..)+ , ChartStyle(..) , ChartRowAuto , ChartRowHeaderAuto , ChartColumn(..)
src/Charts/Internal/Chart.hs view
@@ -102,7 +102,7 @@ defaultChartOptions :: ChartOptions defaultChartOptions = ChartOptions (object []) --- | The primary chart type. Build using 'buildChart'.+-- | The primary chart type. data Chart = Chart { options :: ChartOptions , style :: ChartStyle@@ -125,7 +125,8 @@ -- e.g. -- -- @--- buildChart defaultChartOptions BarChart+-- myChart :: Chart+-- myChart = buildChart defaultChartOptions BarChart -- [StringColumn "Year", NumberColumn "Population"] -- [ [ String "2004", Number 1000 ] -- , [ String "2005", Number 1170 ]