packages feed

timeline-0.1.1.0: timeline.cabal

cabal-version:      2.2
name:               timeline
version:            0.1.1.0
synopsis:
  Data type representing a piecewise-constant function over time

description:
  Provides data types and related function to make handling
  timelines easier.  Please see the README on GitHub at
  <https://github.com/bellroy/timeline>

license:            BSD-3-Clause
license-file:       LICENSE
author:             Bellroy Tech Team <haskell@bellroy.com>
maintainer:         Bellroy Tech Team <haskell@bellroy.com>
category:           Development
build-type:         Simple
tested-with:
  GHC ==8.10.7
   || ==9.2.8
   || ==9.4.8
   || ==9.6.6
   || ==9.8.2
   || ==9.10.1

extra-doc-files:
  CHANGELOG.md
  README.md

extra-source-files: test/golden/*.txt

source-repository head
  type:     git
  location: https://github.com/bellroy/timeline.git

common deps
  build-depends:
    , base                 >=4.14.3   && <4.21
    , containers           >=0.6.5    && <0.7.1
    , hedgehog             >=1.1      && <1.6
    , indexed-traversable  >=0.1.2    && <0.2
    , text                 ^>=1.2.4.1 || ^>=2.0 || ^>=2.1
    , time                 >=1.9.3    && <1.15

library
  import:           deps
  hs-source-dirs:   src/
  exposed-modules:
    Data.Timeline
    Data.Timeline.Hedgehog

  default-language: Haskell2010
  ghc-options:      -Wall -fno-warn-unused-do-bind -fno-warn-unused-imports
  build-depends:
    , template-haskell  >=2.16.0 && <2.23
    , th-compat         >=0.1.4  && <0.2

  if impl(ghc <9.6)
    build-depends: foldable1-classes-compat ^>=0.1

test-suite tests
  import:             deps
  type:               exitcode-stdio-1.0
  hs-source-dirs:     test
  main-is:            Main.hs
  other-modules:      Data.TimelineTest
  default-language:   Haskell2010
  build-tool-depends: tasty-discover:tasty-discover >=4.2 && <5.1
  build-depends:
    , bytestring      >=0.10      && <0.13
    , hashable        ^>=1.4.2.0  || ^>=1.5
    , tasty           >=1.4.3     && <1.6
    , tasty-golden    ^>=2.3.5
    , tasty-hedgehog  >=1.2.0.0
    , tasty-hunit     ^>=0.10.0.3
    , timeline
    , transformers    >=0.5.6.2   && <0.6.2.0