packages feed

hinze-streams

Streams and Unique Fixed Points

view on Hackage

Numeric instances for infinite streams. An implementation of: /Functional Pearl: Streams and Unique Fixed Points/, Ralf Hinze, University of Oxford Streams, infinite sequences of elements, live in a coworld: they are given by a coinductive data type, operations on streams are implemented by corecursive programs, and proofs are conducted using coinduction. But there is more to it: suitably restricted, stream equations possess unique solutions, a fact that is not very widely appreciated. We show that this property gives rise to a simple and attractive proof technique essentially bringing equational reasoning to the coworld. In fact, we redevelop the theory of recurrences, finite calculus and generating functions using streams and stream operators building on the cornerstone of unique solutions. The development is constructive: streams and stream operators are implemented in Haskell, usually by one-liners. The resulting calculus or library, if you wish, is elegant and fun to use. Finally, we rephrase the proof of uniqueness using generalised algebraic data types. Along with the usual instances for infinite streams, this provides: Num, Enum, Real, Fractional, as well as recurrences on streams, finite calculus, generators
versionuploadeduploaderchanges
1.02009-05-03 21:25 UTCDonaldStewart+561/−0 lines, 7 filesdep +Streamdep +basedep +haskell98setup-changed

Dependencies of hinze-streams-1.0

Stream >=0 0.4.7.1 → 0.4.7.2
2015-02-06 15:35 UTC0.4.7.2+22/−1 lines, 2 files
2014-01-14 21:47 UTC0.4.7.1+8/−7 lines, 2 files
2014-01-14 21:28 UTC0.4.7+1/−1 lines, 1 files
2014-01-14 21:18 UTC0.4.6.2+6/−1 lines, 2 files
2012-10-22 08:15 UTC0.4.6.1+36/−6 lines, 2 filesPVP: minor bump suggested

showing 5 of 24 versions

base >=0 4.22.0.0 → 4.22.1.0
2026-12-01 12:38 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

haskell98 >=0 2.0.0.2 → 2.0.0.3
2014-03-22 12:21 UTC2.0.0.3+167/−95 lines, 34 filesdep ~arraydep ~basedep ~directorynew-uploaderPVP: major bump suggested
2012-09-06 18:07 UTC2.0.0.2+3/−3 lines, 2 filesdep ~basedep ~directoryPVP: major bump suggested
2012-02-02 23:15 UTC2.0.0.1+356/−234 lines, 33 filesdep ~arraydep ~old-timedep ~timePVP: major bump suggested
2011-08-25 12:29 UTC2.0.0.0+728/−18 lines, 6 filesdep +timedep −randomdep ~basedep ~processPVP ok
2011-03-03 15:09 UTC1.1.0.1+8/−3 lines, 1 filesdep ~arraydep ~directorydep ~old-localePVP: major bump suggested

showing 5 of 9 versions

Reverse dependencies

1 packages depend on hinze-streams

acme-everything 2018.11.18 requires hinze-streams >=0