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

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Oct 4 03:47:40 EDT 2007


Hello Justin,

Thursday, October 4, 2007, 1:47:00 AM, you wrote:

> Which could be stripped off it you wanted:

>   evilDictatator :: a
>   evilDictator = runUnsafe $ launchMissiles

just imagine using ByteString library with all these runUnsafe calls
flying around :)))  or using immutable arrays - in Hugs, they are
implemented using unsafeIOToST. and the last point - because
almost everything is based on using C calls and they *can* launch
missiles, you should have *every* library function imported to be in
these Unsafe monad. are you really need it? :D


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list