From: koral <ko...@ma...> - 2014-08-19 16:25:48
|
Hello, Since gtk2hs 0.13, every function that used to be fed with a String, can now be fed with either a String or a Text. This was implemented using the typeclass GlibString that has 2 instances: String and Text. In your case, GHC was unable to deduce alone which one to use for the last argument of pixbufSave: the value [] doesn't help disambiguating between [(String, String)] and [(Text, Text)]. To fix it, simply write the type explicitly: pixbufSave pb toPath jpegImageFormat ([] :: [(T.Text, T.Text)]) Regards. |