[Haskell-cafe] What are side effects in Haskell?
Cristiano Paris
frodo at theshire.org
Fri Jan 2 05:52:29 EST 2009
On Tue, Dec 30, 2008 at 8:35 AM, Conal Elliott <conal at conal.net> wrote:
>> Everything in Haskell is a function [...]
>
> Where did this idea come from?
>
> I'd say every expression in Haskell denotes a pure value, only some of which
> are functions (have type a->b for some types a & b).
Maybe more formally correct, but my statement still holds true as any
values can be tought as constant functions, even those representing
functions themselves.
Cristiano
More information about the Haskell-Cafe
mailing list