step-function

Staircase functions or piecewise constant functions

https://github.com/jonpetterbergman/step-function

Version on this page:0.2.1@rev:2
LTS Haskell 24.45:0.2.1@rev:3
Stackage Nightly 2026-06-14:0.2.1@rev:3
Latest on Hackage:0.2.1@rev:3

See all snapshots step-function appears in

BSD-3-Clause licensed by Oleg Grenrus, Petter Bergman
Maintained by Oleg Grenrus
This version can be pinned in stack with:step-function-0.2.1@sha256:d9a4f1e5a6a7b435ae83ada2e37f1ba65c595a90b868a5e94949503f4cd834ef,1835

step-function

Step functions, staircase functions or piecewise constant functions.

Changes

0.2.1

  • Support GHC-8.6.5…9.10.1

0.2

Complete rewrite.

  • Uses ‘Map’ for the internal representation to be more effecient.
  • Added discrete variants.
  • GHC-8.4 support

0.1.1.2

  • Build with GHC 8.2.2

0.1.1.1

Build with GHC 8.0.1.

0.1.1.0

StepFunction is now an instance of Functor.

0.1.0.2

Build with ghc 7.8.4.

0.1.0.1

Documentation fixes.

0.1.0.0

First import of package.