Re: [Haskell-cafe] Why not assign a type to unsafePerformIO?

On 10/3/07, Victor Nazarov
But how would you know that evil dictator uses unsafePerformIO???
You don't. unsafePerformIO can't be taken it away (there are legitimate reasons to strip IO), which is why I wonder if it's useful at all. p.s. CC'ed to haskell-cafe

On 10/4/07, Justin Bailey
On 10/3/07, Victor Nazarov
wrote: But how would you know that evil dictator uses unsafePerformIO???
You don't. unsafePerformIO can't be taken it away (there are legitimate reasons to strip IO), which is why I wonder if it's useful at all.
p.s. CC'ed to haskell-cafe
May be you should be interested in Tom Mortel's example of using unsafeInterleaveIO: http://blog.moertel.com/articles/2007/03/28/directory-tree-printing-in-haske... If you don't mean anything like this, I don't understand your intent. -- vir http://vir.comtv.ru/
participants (2)
-
Justin Bailey
-
Victor Nazarov