[Haskell-cafe] On the purity of Haskell
Jerzy Karczmarczuk
jerzy.karczmarczuk at unicaen.fr
Thu Dec 29 17:51:57 CET 2011
Iustin Pop::
> In practice too:
>
> bar _ = do
> s<- readFile "/tmp/x.txt"
> return (read s)
>
> Once you're in a monad that has 'state', the return value doesn't
> strictly depend anymore on the function arguments.
Nice example. PLEASE, show us the trace of its execution. Then, the
discussion might be more fruitful
Jerzy Karczmarczuk
More information about the Haskell-Cafe
mailing list