| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Fri, 16 Jan 2026 12:37:40 GMT
X-Served-By: cache-dfw-kdal2120028-DFW, cache-bom-vanm7210043-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768567061.561052,VS0,VE281
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
flux-monoid: A monoid for tracking changes
flux-monoid: A monoid for tracking changes
Downloads
- flux-monoid-1.0.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 1.0.0.0 |
|---|---|
| Dependencies | base (>=4.7 && <5) [details] |
| License | BSD-3-Clause |
| Copyright | 2018 Chris Penner |
| Author | Chris Penner |
| Maintainer | Chris Penner |
| Uploaded | by ChrisPenner at 2025-08-13T02:17:54Z |
| Category | Data Structures |
| Home page | https://github.com/ChrisPenner/flux-monoid#readme |
| Source repo | head: git clone https://github.com/ChrisPenner/flux-monoid |
| Distributions | NixOS:1.0.0.0 |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 908 total (15 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2025-08-13 [all 1 reports] |
Readme for flux-monoid-1.0.0.0
[back to package description]flux-monoid
Flux is a monoid which counts the number of times an element changes
(according to its Eq instance) This is useful for gaining associativity (and
its associated performance improvements) for tasks where you'd otherwise use
group or groupBy
It also allows usage of change-detection semantics in situations where a Monoid is required; e.g. in a FingerTree
> getFlux $ foldMap flux ["a", "b", "b", "a"]
2
> getFlux $ foldMap flux ["a", "b", "b", "a", "c", "c", "c"]
3