packages feed

chart-unit-0.6.2.0: chart-unit.cabal

name:           chart-unit
version:        0.6.2.0
synopsis:       Native haskell charts.
description:    <<https://tonyday567.github.io/other/mainExample.svg>>
                .
                chart-unit is a native haskell charting library designed:
                .
                - as a chart DSL and algebra
                .
                - towards a minimalist look and feel
                .
                - to provide a set of default values that are robust across different data and physical chart scales
                .
                - around provision of a small but core set of chart types.
                .
                See <https://tonyday567.github.io/chart-unit/index.html chart-unit> for a chart gallery.
category:       charts
homepage:       https://github.com/tonyday567/chart-unit#readme
bug-reports:    https://github.com/tonyday567/chart-unit/issues
author:         Tony Day
maintainer:     tonyday567@gmail.com
copyright:      2016 Tony Day
license:        BSD3
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.18

extra-doc-files:
    other/*.svg

extra-source-files:
    stack.yaml

source-repository head
  type: git
  location: https://github.com/tonyday567/chart-unit

library
  hs-source-dirs:
      src
  default-extensions: DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances InstanceSigs MultiParamTypeClasses NegativeLiterals NoImplicitPrelude OverloadedStrings PatternSynonyms RankNTypes TypeFamilies UnicodeSyntax
  ghc-options: -funbox-strict-fields -fforce-recomp
  build-depends:
      SVGFonts
    , base >=4.7 && <5
    , colour
    , data-default
    , diagrams-lib
    , diagrams-svg
    , foldl
    , formatting
    , generic-lens
    , lens
    , linear
    , numhask
    , numhask-prelude
    , numhask-range
    , palette
    , protolude
    , scientific
    , svg-builder
    , text
    , time
  exposed-modules:
      Chart
      Chart.ADT
      Chart.Arrow
      Chart.Bar
      Chart.Core
      Chart.Data
      Chart.Data.Time
      Chart.Glyph
      Chart.Hud
      Chart.Line
      Chart.Rect
      Chart.Svg
      Chart.Text
  other-modules:
      Paths_chart_unit
  default-language: Haskell2010

executable chart-unit-gallery
  main-is: gallery.hs
  hs-source-dirs:
      examples
  ghc-options: -funbox-strict-fields -fforce-recomp -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5
    , chart-unit
    , diagrams-lib
    , formatting
    , generic-lens-labels
    , lens
    , mwc-probability >= 2.0.2
    , mwc-random
    , numhask
    , numhask-prelude
    , numhask-histogram
    , numhask-range
    , primitive
    , protolude
    , text
    , time
  other-modules:
      Paths_chart_unit
  default-language: Haskell2010

executable chart-unit-main-example
  main-is: mainExample.hs
  hs-source-dirs:
      examples
  ghc-options: -funbox-strict-fields -fforce-recomp -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5
    , chart-unit
    , generic-lens-labels
    , lens
    , numhask
    , numhask-prelude
    , numhask-range
  other-modules:
      Paths_chart_unit
  default-language: Haskell2010

executable chart-unit-source-examples
  main-is: sourceExamples.hs
  hs-source-dirs:
      examples
  ghc-options: -funbox-strict-fields -fforce-recomp -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5
    , chart-unit
    , diagrams-lib
    , generic-lens-labels
    , lens
    , numhask
    , numhask-prelude
    , numhask-range
    , protolude
    , text
  other-modules:
      Paths_chart_unit
  default-language: Haskell2010

test-suite test
  type: exitcode-stdio-1.0
  main-is: test.hs
  hs-source-dirs:
      test
  build-depends:
      base >=4.7 && <5
    , chart-unit
    , doctest
    , numhask
    , numhask-prelude
    , numhask-range
    , tasty
    , tasty-hspec
  other-modules:
      Paths_chart_unit
  default-language: Haskell2010