[Haskell-cafe] Drawing an existing image into a cairo surface?

Rafal Kolanski xs at xaph.net
Sun Sep 21 10:09:47 EDT 2008

Bulat Ziganshin wrote:
> afair, Render is a super-IO monad so you can just lift any IO
> operation to Render:
> x <- liftIO$ imageSurfaceCreateFromPNG file

You are indeed correct.

I feel really silly now, using unsafePerformIO in the IO monad. D'oh!

Thank you very much!

Rafal Kolanski.

More information about the Haskell-Cafe mailing list