packages feed

chart-unit 0.3.1 → 0.3.2

raw patch · 4 files changed

+11/−37 lines, 4 filesdep −HUnitdep −ListLikedep −QuickCheckdep ~numhask-rangePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies removed: HUnit, ListLike, QuickCheck, SVGFonts, containers, data-default, diagrams, diagrams-core, smallcheck, tasty-hunit, tasty-quickcheck, tasty-smallcheck

Dependency ranges changed: numhask-range

API changes (from Hackage documentation)

+ Chart.Types: qChart :: forall a_aho3 b_aho4. (Renderable (Text Double) a_aho3, Renderable (Path V2 Double) a_aho3) => Getter (QChart a_aho3 b_aho4) (Aspect -> b_aho4 -> QDiagram a_aho3 V2 Double Any)
+ Chart.Types: qData :: forall a_aho3 b_aho4. Lens' (QChart a_aho3 b_aho4) b_aho4
+ Chart.Types: qXY :: forall a_aho3 b_aho4. Lens' (QChart a_aho3 b_aho4) (Rect Double)
- Chart.Types: QChart :: ((Renderable (Text Double) a, Renderable (Path V2 Double) a) => Aspect -> b -> QDiagram a V2 Double Any) -> Rect Double -> b -> QChart a
+ Chart.Types: QChart :: ((Renderable (Text Double) a, Renderable (Path V2 Double) a) => Aspect -> b -> QDiagram a V2 Double Any) -> Rect Double -> b -> QChart a b
- Chart.Types: [_qChart] :: QChart a -> (Renderable (Text Double) a, Renderable (Path V2 Double) a) => Aspect -> b -> QDiagram a V2 Double Any
+ Chart.Types: [_qChart] :: QChart a b -> (Renderable (Text Double) a, Renderable (Path V2 Double) a) => Aspect -> b -> QDiagram a V2 Double Any
- Chart.Types: [_qData] :: QChart a -> b
+ Chart.Types: [_qData] :: QChart a b -> b
- Chart.Types: [_qXY] :: QChart a -> Rect Double
+ Chart.Types: [_qXY] :: QChart a b -> Rect Double
- Chart.Types: arrowColor :: forall a_anfB. Lens' (ArrowConfig a_anfB) Color
+ Chart.Types: arrowColor :: forall a_alLZ. Lens' (ArrowConfig a_alLZ) Color
- Chart.Types: arrowHeadSize :: forall a_anfB. Lens' (ArrowConfig a_anfB) a_anfB
+ Chart.Types: arrowHeadSize :: forall a_alLZ. Lens' (ArrowConfig a_alLZ) a_alLZ
- Chart.Types: arrowMaxHeadSize :: forall a_anfB. Lens' (ArrowConfig a_anfB) a_anfB
+ Chart.Types: arrowMaxHeadSize :: forall a_alLZ. Lens' (ArrowConfig a_alLZ) a_alLZ
- Chart.Types: arrowMaxStaffLength :: forall a_anfB. Lens' (ArrowConfig a_anfB) a_anfB
+ Chart.Types: arrowMaxStaffLength :: forall a_alLZ. Lens' (ArrowConfig a_alLZ) a_alLZ
- Chart.Types: arrowMaxStaffWidth :: forall a_anfB. Lens' (ArrowConfig a_anfB) a_anfB
+ Chart.Types: arrowMaxStaffWidth :: forall a_alLZ. Lens' (ArrowConfig a_alLZ) a_alLZ
- Chart.Types: arrowMinHeadSize :: forall a_anfB. Lens' (ArrowConfig a_anfB) a_anfB
+ Chart.Types: arrowMinHeadSize :: forall a_alLZ. Lens' (ArrowConfig a_alLZ) a_alLZ
- Chart.Types: arrowMinStaffLength :: forall a_anfB. Lens' (ArrowConfig a_anfB) a_anfB
+ Chart.Types: arrowMinStaffLength :: forall a_alLZ. Lens' (ArrowConfig a_alLZ) a_alLZ
- Chart.Types: arrowMinStaffWidth :: forall a_anfB. Lens' (ArrowConfig a_anfB) a_anfB
+ Chart.Types: arrowMinStaffWidth :: forall a_alLZ. Lens' (ArrowConfig a_alLZ) a_alLZ
- Chart.Types: arrowStaffLength :: forall a_anfB. Lens' (ArrowConfig a_anfB) a_anfB
+ Chart.Types: arrowStaffLength :: forall a_alLZ. Lens' (ArrowConfig a_alLZ) a_alLZ
- Chart.Types: arrowStaffWidth :: forall a_anfB. Lens' (ArrowConfig a_anfB) a_anfB
+ Chart.Types: arrowStaffWidth :: forall a_alLZ. Lens' (ArrowConfig a_alLZ) a_alLZ
- Chart.Types: data QChart a
+ Chart.Types: data QChart a b
- Chart.Unit: combine :: Aspect -> [QChart a] -> Chart' a
+ Chart.Unit: combine :: Aspect -> [QChart a b] -> Chart' a

Files

chart-unit.cabal view
@@ -1,7 +1,7 @@ name:   chart-unit version:-  0.3.1+  0.3.2 synopsis:   A set of native haskell charts. description:@@ -38,10 +38,6 @@   build-depends:     base >= 4.7 && < 5,     colour,-    containers,-    data-default,-    diagrams,-    diagrams-core,     diagrams-lib,     diagrams-svg,     foldl,@@ -50,10 +46,7 @@     linear,     numhask >= 0.0.4 && < 1,     numhask-range >= 0.0.2 && < 1,-    protolude,-    text,-    QuickCheck,-    SVGFonts+    text   default-language:     Haskell2010   default-extensions:@@ -106,28 +99,16 @@     base >= 4.7 && < 5,     chart-unit,     protolude,-    containers,-    diagrams,-    diagrams-core,-    diagrams-lib,-    diagrams-svg,-    linear,     foldl,-    lens,     text,-    formatting,-    SVGFonts,     numhask,-    numhask-range,     -- for data examples     mwc-random,     mwc-probability,     primitive,     ad,-    ListLike,     reflection,     tdigest-    -- diagrams-rasterific    default-extensions:     NoImplicitPrelude,@@ -174,20 +155,10 @@     test.hs   build-depends:     base >= 4.7 && < 5,-    HUnit,-    QuickCheck,     chart-unit,-    protolude,-    smallcheck,     tasty,-    tasty-hunit,     tasty-hspec,-    tasty-quickcheck,-    tasty-smallcheck,-    numhask,-    numhask-range,-    data-default,-    diagrams-lib+    numhask   default-extensions:     NoImplicitPrelude,     UnicodeSyntax,
examples/examples.hs view
@@ -179,7 +179,7 @@     ch = lineChart lineDefs asquare lineData  -- compound charts-exampleCompound :: IO [QChart a]+exampleCompound :: IO [QChart a [[V2 Double]]] exampleCompound = do     xys <- mkScatterData     let qsc = QChart (scatterChart scatterDefs) (rangeR2s xys) xys@@ -192,7 +192,7 @@           (\a _ -> axes             ( chartRange .~ Just xy             $ chartAspect .~ a-            $ def)) xy ()+            $ def)) xy []  exampleScatterHist :: [[V2 Double]] -> Chart' a exampleScatterHist xys =
src/Chart/Types.hs view
@@ -13,6 +13,9 @@   , golden   , widescreen   , QChart(..)+  , qXY+  , qChart+  , qData   , Orientation(..)   , Placement(..)   , TickStyle(..)@@ -116,7 +119,7 @@ widescreen = aspect 3  -- | The concrete nature of a QDiagram, and a desire to scale data and hud items naturally, a QChart is mostly a late binding of the Aspect that the chart is to be projected on to and the data.-data QChart a = forall b. QChart+data QChart a b = QChart     { _qChart :: ( ( Renderable (Diagrams.TwoD.Text.Text Double) a)                   , Renderable (Path V2 Double) a) =>                 Aspect -> b -> QDiagram a V2 Double Any
src/Chart/Unit.hs view
@@ -265,7 +265,7 @@            $ chartRange .~ Just axesRange            $ conf))         r-        ()+        []       ]     where       r = rangeR2s d@@ -411,7 +411,7 @@  -- * rendering -- | render a list of qcharts using a common scale-combine :: Aspect -> [QChart a] -> Chart' a+combine :: Aspect -> [QChart a b] -> Chart' a combine (Aspect xy) qcs = mconcat $     (\(QChart c xy1 x) -> c           (Aspect $ xy `times` xy1 `times` recip xysum)