I'm trying to import the monad State. I did the following command:
:m Control.Monad.State
But the module cannot be found. I'm using GHCi, version 7.0.4:.
Can you give me some hint to fix the problem?
Thank you.
You're missing the mtl package.
You can either install it from Hackage yourself; or install the Haskell Platform, which comes with the necessary libraries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With