On 1 August 2010 20:43, Ertugrul Soeylemez <e...@ertes.de> wrote: > Ivan Lazar Miljenovic <ivan.miljeno...@gmail.com> wrote: > >> No, a pure function is one without any side effects. > > There are no functions with side effects in Haskell, unless you use > hacks like unsafePerformIO. Every Haskell function is perfectly > referentially transparent, i.e. pure.
At code-writing time, yes; at run-time there are side effects... In terms of what a function does, is readFile actually pure? -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe