[Haskell-cafe] Being impure within a 'pure' function

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Apr 22 05:27:25 EDT 2009


Hello Jason,

Wednesday, April 22, 2009, 1:14:49 PM, you wrote:

there is no any need in unsafePerformIO for array computations - ST
monad is exactly what one need here

>   If you want to do raw IO and repackage it as "pure", you can
>   use `unsafePerformIO` and friends. It is important to use the
>   `NOINLINE` pragma in that case.

> --
> Jason Dusek


>  |...unsafePerformIO...|
>  
> http://haskell.org/ghc/docs/latest/html/libraries/base/System-IO-Unsafe.html#v%3AunsafePerformIO
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


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



More information about the Haskell-Cafe mailing list