Control.Monad.State found in multiple packages haskell

后端 未结 2 777
长发绾君心
长发绾君心 2021-02-01 05:43

While evaluating the line \"import Control.Monad.State\" in a Haskell module, GHC gives me the following error:

Could not find module `Control.Monad         


        
2条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 06:09

    Both packages implement Control.Monad.State and GHC does not know which implementation it should prefer, so you need to hide one of the packages from GHC. Seems like the -ignore-package GHC flag might help you here.

提交回复
热议问题