简体   繁体   中英

Xmonad build failed: cound not find module control.monad.reader

I'm trying to cabal install xmonad with profiling and I keep getting the error: cound not find module control.monad.reader

The error message suggested that I may not have installed the profiling libs for mtl-2.0.1.0, but I have confirmed that it is installed with ghc-pkg list | grep mtl. I then took a stab at running ghc-pkg expose on it, but no luck.

I tried googling and checking SO, but all I could find were problems related to having multiple instances of control.monad.reader installed and ghc being unable to determine which to use.

Right now, I'm just out of ideas about what do, any help would be appreciated.

Just because you have mtl installed does NOT mean you have the profiling libraries installed. You shouldn't need profiling - how are you installing XMonad? Did you change your cabal config file recently to enable profiling?

The way I see it you can either reinstall mtl with profiling:

cabal install --reinstall --enable-library-profiling mtl

Then install XMonad, or just disable profiling for the xmonad installation:

cabal install --disable-library-profiling xmonad

(I'm assuming that will override the setting from the config file)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM