我对 Haskell 和 Gtk2Hs 有一个奇怪的错误。
我尝试在文本条目中设置光标位置
set entree [entryCursorPosition := 5 ]
对应于类型
entryCursorPosition :: EntryClass self => ReadAttr self Int
我有以下错误:
Couldn't match expected type `()' with actual type `Int'
你认为这是一个错误吗?你知道怎么解决吗?
我在我的 Debian Wheezy 上使用 Gtk2Hs 0.12.3 和 GHC 7.4.1。
此致。