Converting IO Int to Int

前端 未结 3 2040
礼貌的吻别
礼貌的吻别 2020-12-01 12:53

I\'ve created a combobox from converting a xmlWidget to a comboBox with the function castTocomboBox and now I want to get the text or

3条回答
  •  长情又很酷
    2020-12-01 13:52

    Well, there is unsafePerformIO: http://haskell.org/ghc/docs/6.12.1/html/libraries/base-4.2.0.0/System-IO-Unsafe.html#v:unsafePerformIO

    (If you want to know how to find this method: Go to http://www.haskell.org/hoogle and search for the signature you need, here IO a -> a)

    That said, you probably heard of "What happens in IO stays in IO". And there are very good reasons for this (just read the documentation of unsafePerformIO). So you very likely have a design problem, but in order to get help from experienced Haskellers (I'm certainly not), you need to describe your problem more detailed.

提交回复
热议问题