[Haskell-cafe] Generators? Iterators?

Jack Henahan jhenahan at me.com
Sat Apr 23 06:07:29 UTC 2016


Types that admit a Monad instance can be used to represent such sequences (and more general ones besides).

> On Apr 23, 2016, at 01:28, Christopher Howard <ch.howard at zoho.com> wrote:
> 
> Hi. I'm more in the shallow end of the Haskell pool right now, so
> forgive me if this is really basic... In Haskell, what is the class for
> things that can provide an infinite sequence? I mean, things that
> produce a value as well as function for producing the next value?
> Clearly RandomGen does this, but what is the next level of abstraction
> above RandomGen (i.e., RandomGen minus the randomness aspect).
> 
> -- 
> http://justonemoremathproblem.com
> To protect my privacy, please use PGP encryption. It's free and easy
> to use! My public key ID is 0x340EA95A (pgp.mit.edu).
> 
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe


More information about the Haskell-Cafe mailing list