我正在尝试使用 ghc-7.8.3 构建 ghc-mtl-1.2.1.0 并且收到以下错误消息:
Control/Monad/Ghc.hs:42:15:
No instance for (GHC.MonadIO Ghc)
arising from the 'deriving' clause of a data type declaration
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
When deriving the instance for (GHC.ExceptionMonad Ghc)
Control/Monad/Ghc.hs:46:15:
No instance for (MonadIO GHC.Ghc)
arising from the 'deriving' clause of a data type declaration
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
When deriving the instance for (MonadIO Ghc)
Control/Monad/Ghc.hs:49:15:
No instance for (GHC.MonadIO Ghc)
arising from the 'deriving' clause of a data type declaration
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
When deriving the instance for (GHC.GhcMonad Ghc)
与 ghc-7.8.2 相同的错误。
我试图找出 9000 多个类型和/或模块中的哪一个被称为Ghc
和/或GHC
和/或MonadIO
对此负责,但到目前为止还没有运气。
所以我的问题是:
- 造成这种破损的原因是什么变化?
- 是否可以在不从 7.8.3 降级的情况下修复它?