Here is a snippet of my code:
import Control.Monad.State as S get x = x + 1
Now, if I try to use get
, I get the following error:
Ambiguous occurrence `get' It could refer to either `Main.get', defined at twitter.hs:59:1 or `S.get', imported from Control.Monad.State at twitter.hs:15:1-31
Since I imported Control.Monad.State
as a qualified module, should I not automatically select the get
function in Main
? Why is he facing this conflict? How can i fix this?
source share