This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libraries/haskeline/System/Console/Haskeline/Backend/DumbTerm.hs:25:49: | |
Could not coerce from ‘StateT | |
Window (PosixT m) (StateT Window (PosixT m) a)’ | |
to ‘StateT Window (PosixT m) (DumbTerm m a)’ | |
because the third type argument of ‘StateT’ has role Nominal, | |
but the arguments ‘StateT Window (PosixT m) a’ and ‘DumbTerm m a’ | |
differ | |
arising from the coercion of the method ‘GHC.Base.join’ | |
from type ‘forall a. | |
StateT Window (PosixT m) (StateT Window (PosixT m) a) | |
-> StateT Window (PosixT m) a’ | |
to type ‘forall a. DumbTerm m (DumbTerm m a) -> DumbTerm m a’ | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
When deriving the instance for (Monad (DumbTerm m)) | |
make[1]: *** [libraries/haskeline/dist-install/build/System/Console/Haskeline/Backend/DumbTerm.o] Error 1 | |
make[1]: *** Waiting for unfinished jobs.... | |
libraries/haskeline/System/Console/Haskeline/Backend/Terminfo.hs:107:37: | |
Could not coerce from ‘ReaderT | |
Actions | |
(ReaderT Terminal (StateT TermRows (StateT TermPos (PosixT m)))) | |
(ReaderT | |
Actions | |
(ReaderT Terminal (StateT TermRows (StateT TermPos (PosixT m)))) | |
a)’ | |
to ‘ReaderT | |
Actions | |
(ReaderT Terminal (StateT TermRows (StateT TermPos (PosixT m)))) | |
(Draw m a)’ | |
because the third type argument of ‘ReaderT’ has role Nominal, | |
but the arguments | |
‘ReaderT | |
Actions | |
(ReaderT Terminal (StateT TermRows (StateT TermPos (PosixT m)))) | |
a’ | |
and ‘Draw m a’ differ | |
arising from the coercion of the method ‘join’ | |
from type ‘forall a. | |
ReaderT | |
Actions | |
(ReaderT Terminal (StateT TermRows (StateT TermPos (PosixT m)))) | |
(ReaderT | |
Actions | |
(ReaderT Terminal (StateT TermRows (StateT TermPos (PosixT m)))) | |
a) | |
-> ReaderT | |
Actions | |
(ReaderT Terminal (StateT TermRows (StateT TermPos (PosixT m)))) | |
a’ | |
to type ‘forall a. Draw m (Draw m a) -> Draw m a’ | |
Possible fix: | |
use a standalone 'deriving instance' declaration, | |
so you can specify the instance context yourself | |
When deriving the instance for (Monad (Draw m)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment