Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import monad state

Tags:

haskell

ghci

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.

like image 422
Aslan986 Avatar asked Feb 19 '26 06:02

Aslan986


1 Answers

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.

like image 166
Don Stewart Avatar answered Feb 20 '26 19:02

Don Stewart