[Haskell-beginners] [Haskell-cafe] select :: [(Float, a)] -> a -- Weighted stochastic selection - help?

Andrew Wagner wagner.andrew at gmail.com
Fri Sep 5 15:41:59 EDT 2008


IO is a special case, I'll grant you that. But I thought all other
monads were considered pure. State is just a wrapped up function,
basically. Nothing impure about that.

On Fri, Sep 5, 2008 at 3:42 PM, Daniel Fischer <daniel.is.fischer at web.de> wrote:
> Am Freitag, 5. September 2008 21:06 schrieb C.M.Brown:
>> Some Monads (such as State and IO) allow side effects and are
>> therefore not pure.
>
> State allows side effects? How that?
>>
>> HTH,
>> Chris.
>>
>> On Fri, 5 Sep 2008, Andrew Wagner wrote:
>> > [snip]
>> > ... in a purely functional way, i.e. no monads.
>> > [snip]
>> >
>> > Err, what? Monads aren't purely functional?
>
>


More information about the Beginners mailing list