iconv インストールでエラー発生。

iconv をインストールしようとしてエラー発生。ghc-6.8.1 は問題なし。

問題を確認したバージョン。 6.10.1、6.10.2


$ runghc Setup.hs configure
Configuring iconv-0.4.0.2...
$ runghc Setup.hs build
Preprocessing library iconv-0.4.0.2...
Building iconv-0.4.0.2...
[2 of 2] Compiling Codec.Text.IConv ( Codec/Text/IConv.hs, dist/build/Codec/Text/IConv.o )

Codec/Text/IConv.hs:152:29:
Not in scope: data constructor `Exception.IOException'

6.8.3 だとOK。


$ runghc Setup.hs configure
Configuring iconv-0.4.0.2...
$ runghc Setup.hs build
Preprocessing library iconv-0.4.0.2...
Building iconv-0.4.0.2...
[1 of 2] Compiling Codec.Text.IConv.Internal ( Codec/Text/IConv/Internal.hs, dist/build/Codec/Text/IConv/Internal.o )

Codec/Text/IConv/Internal.hs:91:15:
Warning: This binding for `inBuffer' shadows an existing binding
In a lambda abstraction
(snip)
[2 of 2] Compiling Codec.Text.IConv ( Codec/Text/IConv.hs, dist/build/Codec/Text/IConv.o )
/usr/bin/ar: creating dist/build/libHSiconv-0.4.0.2.a
$ sudo runghc Setup.hs build
Preprocessing library iconv-0.4.0.2...
Building iconv-0.4.0.2...
/usr/bin/ar: creating dist/build/libHSiconv-0.4.0.2.a