Open tomjaguarpaw opened 8 years ago
That seems evident from the name & type: FontDescription -> FontStyle -> IO ()
. A FontDescription
is a ForeignPtr
, and the function certainly isn't returning a new FontDescription
.
What behavior would you expect instead?
I would expect reading a FontDescription
to require IO
if its value can change!
Fair enough. The Show
instances use unsafePerformIO
. It's hacky, and there's certainly no corresponding Read
instance.
This is astonishing. Has no one noticed this before?