Excerpts from Rafal Kolanski's message of Sun Sep 21 07:28:37 -0500 2008: > The best I can find is withImageSurfaceFromPNG, but I can't > make it work.
Why not? Seems to me all you need to do is: withImageSurfaceFromPNG "blah.png" $ \surface -> do ... Lots of code is written this way (create a resource, pass it to a function and then release it after the function is over.) > I tried playing around with unsafePerformIO but that just gets me into: Without further context as to what you are doing, I really see no reason why you would have to use unsafePerformIO at all. Austin _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe