尝试使用 ghc-7.6.1 编译 gtk Haskell 包时,出现以下错误(尝试构建依赖项之一 pango 时,但如果我尝试手动安装它们也会出现在其他依赖项包中):
[ 1 of 14] Compiling Graphics.Rendering.Pango.Types ( dist/build/Graphics/Rendering/Pango/Types.hs, dist/build/Graphics/Rendering/Pango/Types.o )
Graphics/Rendering/Pango/Types.chs:249:1:
Unacceptable result type in foreign declaration: CULong
When checking declaration:
foreign import ccall unsafe "static pango_context_get_type" pango_context_get_type
:: CULong
我之前安装了旧版本的 gtk2hs,所以在升级过程中会发生这种情况。
如何修复错误?