Skip to content

GHC 7.0.3 produces corrupt .hi files for qtHaskell

I installed qtHaskell 1.1.4 by installing Qt 4.7.3 through brew. I ran ./build --enable-shared for qtHaskell, which failed after compiling and installing all of the C bindings. I then ran cabal install --disable-library-for-ghci, per http://hackage.haskell.org/trac/hackage/ticket/791 .

I can successfully build, but I get the following warnings:

[1 of 1] Compiling Main             ( Main.hs, dist/build/qtTest/qtTest-tmp/Main.o )
/Users/ian/Library/Haskell/ghc-7.0.3/lib/qt-1.1.4/lib/Qtc/Gui/QWidget.hi
Declaration for $wa227
Unfolding of Qtc.Gui.QWidget.$wa227
Unfolding of eta:
  Iface id out of scope:  qtc_QWidget_setWindowTitle
/Users/ian/Library/Haskell/ghc-7.0.3/lib/qt-1.1.4/lib/Qtc/Gui/QLabel.hi
Declaration for $wa141
Unfolding of Qtc.Gui.QLabel.$wa141
Unfolding of eta:
  Iface id out of scope:  qtc_QLabel_setText

When I run the compiled program, labels do not show up properly, and I'm pretty sure that it's due to these issues.

Edited by Simon Peyton Jones
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information