[Haskell-cafe] transformers problem: Could not deduce MonadTrans (StateT s) ??
Anton Kholomiov
anton.kholomiov at gmail.com
Sat Jun 23 19:52:24 CEST 2012
Indeed, thank you. mtl is cruel with me for
the second time uumpf. But it's strange mtl
just reexports transformer's module
2012/6/23 MigMit <miguelimo38 at yandex.ru>
>
> On 23 Jun 2012, at 21:27, Anton Kholomiov wrote:
>
> > At last..
> >
> > No, it wants me to define an instance for
> > (StateT s) which is supposed to be defined
> > be the authors of the library.
> >
> > Actually I discovered that I have two libraries
> > called transformers.
> >
> > transformers-0.2.2.0
> > transformers-0.3.0.0
> >
> > So when I'm doing
> >
> > import Control.Monad.Trans (0.2.2.0)
>
> Ehm... seems like you're importing mtl instead of transformers. AFAIK
> there is no "Control.Monad.Trans" module in transformers.
>
> >
> > I get the error
> >
> > And when I'm doing
> >
> > import Control.Monad.Trans.Class (0.2.2.0)
> >
> > It compiles.
> >
> >
> > Anton
> >
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskell-Cafe at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120623/a42389bb/attachment.htm>
More information about the Haskell-Cafe
mailing list