[Haskell-cafe] Is it safe to use unsafePerformIO here?

Cristiano Paris frodo at theshire.org
Tue Sep 15 16:11:50 EDT 2009


On Tue, Sep 15, 2009 at 10:08 PM, Cristiano Paris <frodo at theshire.org> wrote:
> ...
> So, it seems that "seq b" is completely ineffective and program is not correct.

Correction: removing "seq b" results in nothing being displayed :)

So, it's not "completely" effective. I suspect this is related to the
fact that a String in Haskell is just a list of Char so we should use
seq on every element of b. Let me try...

Cristiano


More information about the Haskell-Cafe mailing list