chart-svg 0.0.2 → 0.0.3
raw patch · 3 files changed
+27/−24 lines, 3 filesdep ~generic-lensdep ~numhask-spacedep ~protolude
Dependency ranges changed: generic-lens, numhask-space, protolude, web-rep
Files
- app/venn.hs +3/−3
- chart-svg.cabal +16/−16
- stack.yaml +8/−5
app/venn.hs view
@@ -196,10 +196,10 @@ (defaultTextStyle & set #color colorText,) <$> (replicate 7 "" <> (phraseText <$> mainPhrases) <> [""]) -writeVenn :: [Colour] -> Double -> IO ()-writeVenn cs o = writeChartsWith "other/venn.svg" (defaultSvgOptions & set #scaleCharts' NoScaleCharts & set #svgAspect ChartAspect & set #svgHeight 100) ([phraseChart (Phrase "λ" (Point 0 (-0.2)) 0.8 0 (Colour 0.1 0 0.2 1) "chart-svg" 1)] <> (zipWith (\p c -> Chart (GlyphA $ seg p c) [SP 0.0 0.0]) [outerseg1, outerseg2, outerseg3, midseg1, midseg2, midseg3] cs) <> [Chart BlankA [SR (-1.5) 1.5 (-1.5) 1.5]])+writeVenn :: [Colour] -> IO ()+writeVenn cs = writeChartsWith "other/venn.svg" (defaultSvgOptions & set #scaleCharts' NoScaleCharts & set #svgAspect ChartAspect & set #svgHeight 100) ([phraseChart (Phrase "λ" (Point 0 (-0.2)) 0.8 0 (Colour 0.1 0 0.2 1) "chart-svg" 1)] <> (zipWith (\p c -> Chart (GlyphA $ seg p c) [SP 0.0 0.0]) [outerseg1, outerseg2, outerseg3, midseg1, midseg2, midseg3] cs) <> [Chart BlankA [SR (-1.5) 1.5 (-1.5) 1.5]]) main :: IO () main = do writeVennWords- writeVenn palette 0.8+ writeVenn palette
chart-svg.cabal view
@@ -1,15 +1,15 @@-cabal-version: >= 1.10+cabal-version: 3.0 name: chart-svg-version: 0.0.2-synopsis: See readme.md-description: See readme.md for description.+version: 0.0.3+synopsis: Charts in SVG+description: Chart library targetting SVG. category: project homepage: https://github.com/tonyday567/chart-svg#readme bug-reports: https://github.com/tonyday567/chart-svg/issues author: Tony Day maintainer: tonyday567@gmail.com copyright: Tony Day (c) 2017-license: BSD3+license: BSD-3-Clause license-file: LICENSE build-type: Simple extra-source-files:@@ -42,20 +42,20 @@ , base >=4.7 && <5 , bifunctors , foldl- , generic-lens+ , generic-lens >= 1.2 && < 2.0 , lucid , lucid-svg , lens- , numhask-space+ , numhask-space >= 0.4 && < 0.5 , pretty-simple- , protolude+ , protolude >= 0.3 && < 0.4 , scientific , tagsoup , text , text-format , time , transformers- , web-rep+ , web-rep >= 0.5 && < 0.6 default-language: Haskell2010 executable examples@@ -69,14 +69,14 @@ , chart-svg , lens , javascript-bridge- , numhask-space- , protolude+ , numhask-space >= 0.4 && < 0.5+ , protolude >= 0.3 && < 0.4 , scotty , text , transformers , unordered-containers , wai-middleware-static- , web-rep+ , web-rep >= 0.5 && < 0.6 default-language: Haskell2010 executable venn@@ -89,17 +89,17 @@ , bifunctors , containers , chart-svg- , generic-lens+ , generic-lens >= 1.2 && < 2.0 , lucid-svg , lens , javascript-bridge- , numhask-space- , protolude+ , numhask-space >= 0.4 && < 0.5+ , protolude >= 0.3 && < 0.4 , scotty , text , transformers , unordered-containers , wai-middleware-static- , web-rep+ , web-rep >= 0.5 && < 0.6 default-language: Haskell2010
stack.yaml view
@@ -1,14 +1,17 @@-resolver: lts-15.6+resolver: lts-15.13 packages: - . extra-deps:- - box-0.3.0+ - protolude-0.3.0+ - box-0.4.0+ - numhask-space-0.4.0+ - web-rep-0.5.0+ # external non-stack libraries+ - generic-lens-1.2.0.1+ - Color-0.1.4 - interpolatedstring-perl6-1.0.2 - javascript-bridge-0.2.0 - lucid-svg-0.7.1- - numhask-space-0.3.1- - tdigest-0.2.1 - text-format-0.3.2- - web-rep-0.4.0