Encountering error while adding MaybeT dependency in stack project

前端 未结 1 1965
醉话见心
醉话见心 2021-01-21 16:22

I am following this tutorial webScrapper using HXT. I am using Stack here.

While adding dependency for MaybeT, it asked to:

Recommended action:

相关标签:
1条回答
  • 2021-01-21 16:49

    The solution for your concrete problem is switching from the outdated MaybeT package to the MaybeT transformer offered by the transformers package in Control.Monad.Trans.Maybe.


    That said, note that the version mismatch involves base. If you actually needed to use the MaybeT package, you would have to switch the Stack resolver to a snapshot such as lts-6.26, which uses base-4.8 or below (i.e. GHC 7.10.3 or below). base versions are coupled to GHC versions, and everything else depends on base, so there is no easy way of switching just base to an older version, as it might be possible, given some luck, with other packages.

    0 讨论(0)
提交回复
热议问题