をコンパイルしていない私はXFlexibleInstancesを追加する場合は、私にGHC 7.4.2MonadStateインスタンスが<a href="http://book.realworldhaskell.org/read/monad-transformers.html" rel="nofollow noreferrer">http://book.realworldhaskell.org/read/monad-transformers.html</a>からコピーされ、これMonadStateインスタンス
instance (MonadState s m) => MonadState s (MaybeT m) where
get = lift get
put k = lift (put k)
との誤差を与え、
Illegal instance declaration for `MonadState s (MaybeT m)'
(All instance types must be of the form (T a1 ... an)
where a1 ... an are *distinct type variables*,
and each type variable appears at most once in the instance head.
Use -XFlexibleInstances if you want to disable this.)
In the instance declaration for `MonadState s (MaybeT m)'
を与えます代わりにXUndecidableInstancesを追加するように指示されています - 私はここにこれらの拡張が必要ではないと思います。このインスタンスをコンパイルするには?