packages feed

step-function-0.2.1: step-function.cabal

cabal-version:      2.2
name:               step-function
version:            0.2.1
synopsis:           Staircase functions or piecewise constant functions
category:           Text
description:
  Step functions, staircase functions or piecewise constant functions.
  Implemented as a default value and a series of transitions.
  Supports merging two step functions using a supplied merging function.
  .

homepage:           https://github.com/jonpetterbergman/step-function
bug-reports:        https://github.com/jonpetterbergman/stepfunction/issues
author:
  Oleg Grenrus <oleg.grenrus@iki.fi>, Petter Bergman <jon.petter.bergman@gmail.com>

maintainer:         Oleg Grenrus <oleg.grenrus@iki.fi>
license:            BSD-3-Clause
license-file:       LICENSE
build-type:         Simple
extra-source-files:
  Changelog.md
  README.md

tested-with:
  GHC ==8.6.5
   || ==8.8.4
   || ==8.10.7
   || ==9.0.2
   || ==9.2.8
   || ==9.4.8
   || ==9.6.6
   || ==9.8.2
   || ==9.10.1

source-repository head
  type:     git
  location: https://github.com/jonpetterbergman/step-function

library
  default-language: Haskell2010
  ghc-options:      -Wall
  hs-source-dirs:   src
  build-depends:
    , base        >=4.12.0.0 && <4.21
    , containers  >=0.5.0.0  && <0.8
    , deepseq     >=1.4.4.0  && <1.6
    , QuickCheck  >=2.14.5   && <2.16

  other-extensions:
    DeriveFoldable
    DeriveFunctor
    DeriveTraversable
    OverloadedStrings

  exposed-modules:
    Data.Function.Step
    Data.Function.Step.Discrete
    Data.Function.Step.Discrete.Closed
    Data.Function.Step.Discrete.Open

test-suite merge
  type:             exitcode-stdio-1.0
  main-is:          Merge.hs
  build-depends:
    , base
    , QuickCheck
    , step-function

  hs-source-dirs:   test
  default-language: Haskell2010