
5 May
2011
5 May
'11
11:28 p.m.
On Fri, May 6, 2011 at 12:25 AM, aditya siram
There is a function called "unsafePerformIO" which subverts this by turning an 'IO a' into an 'a', but it's not really meant for general use.
This frustrated me in the beginning too, but I found that if I was using 'unsafePerformIO' too much the design was probably bad.
If you are a beginner, you should never use anything that starts with 'unsafe'. And you should *never* use 'unsafePerformIO'. And you should *NEVER* use 'unsafeCoerce'. Cheers, =) -- Felipe.