BSD-3-Clause licensed and maintained by Toshio Ito
This version can be pinned in stack with:fold-debounce-,2305

Module documentation for


Fold multiple events that happen in a given period of time.

How to run tests

cabal configure --enable-tests && cabal build && cabal test


Toshio Ito <debug.ito [at]>


Revision history for fold-debounce – 2023-04-05

  • Confirmed test with ghc-9.4.4 and time-1.12. – 2022-11-24

  • Confirmed test with ghc-9.2.5 and time-1.11. – 2019-10-04

  • Confirmed test with time-1.9.3. – 2018-09-23

  • Confirmed test with stm- – 2018-03-14

  • Confirmed test with hspec-2.5.0. Remove its dependency upper bound, because I think it’s stable enough. – 2017-07-21

  • Confirmed test with time-1.8.
  • Drop version bounds for hspec. It’s stable. – 2017-01-24

  • Confirmed test with hspec-2.4.0. – 2016-11-27

  • Confirmed test with time-1.7. – 2016-10-09

  • Confirmed build with hspec-2.3.0. – 2016-05-22

  • Confirmed build with data-default-class-0.1.0 and base- – 2016-05-02

  • Loosen dependency on data-default to data-default-class.
  • Supports time-1.6 and hspec-2.2.3.
  • Fix test error in Mac OS X. – 2015-06-01

  • The debounce period now starts from the time when the first input event is sent. Previously it was the time when the first input event is popped from the input queue. That lead to weird behavior when the input traffic was too intense.

  • Now this module works without -threaded ghc option thanks to new dependency on ‘stm-delay’ package.

  • Bumped the major version due to the new dependency. – 2015-05-22

  • First version. Released on an unsuspecting world.