ghc7でqtHaskell-1.1.4をインストール
qtHaskell-1.1.4はbuildスクリプトがghc7に対応していないので、Adminpanelを見て手作業で進めていきましょう。
またrunhaskell Setup.hs buildを実行すると、途中でQtc/Core/Attributes.hsで以下のようなエラーを出します。
Qtc/Core/Attributes.hs:583:13: Could not deduce (Qstt a (QDialogSc b)) arising from a use of `slotReject'' from the context (Qstt a (QDialogSc b1)) bound by the instance declaration at Qtc/Core/Attributes.hs:581:10-52 Possible fix: add (Qstt a (QDialogSc b)) to the context of the instance declaration or add an instance declaration for (Qstt a (QDialogSc b)) In the expression: slotReject' In an equation for `reject'': reject' = slotReject' In the instance declaration for `QsaSlotReject a'
そしたら下記のパッチを当てます。
--- Qtc/Core/Attributes.hs 2011-04-07 00:32:52.280000311 +0900 +++ Qtc/Core/Attributes_modify.hs 2011-04-07 00:33:28.033333645 +0900 @@ -580,7 +580,7 @@ instance (Qstt a (QDialogSc b)) => QsaSlotReject (a) where slotReject' = (Qslot "reject()", \_ -> ()) - reject' = slotReject' + reject' = (Qslot "reject()", \_ -> ()) class QsaSignalRejected_nt_f w x f where signalRejected', rejected' :: x -> SltConf w f
でも該当箇所を直接書き換えた方が早いです、きっと。
当てたらrunhaskell Setup.hs buildして、残りの作業を続けます。
ネタ元:windows - An error occured while compiling qtHaskell - Stack Overflow