<div dir="ltr"><span style="font-family:arial,helvetica,sans-serif">How can I tell the Haskell compiler where to find module Control.Monad.Error?  After building GHC 7.6.3 and Haskell Platform 2013.2 on Red Hat Linux 6, I found that 'cabal install cabal-install' fails when it attempts to build library HTTP-4000.2.11 because the Haskell compiler cannot find module </span><span style="font-family:courier new,monospace"><span style="font-family:arial,helvetica,sans-serif">Control.Monad.Error.</span><br>
<br></span><div><span style="font-family:courier new,monospace">*******************************************************<br>* Installation completed successfully.           <br>*<br>* Programs installed into:                       <br>
*   /usr/local/bin<br>*<br>* Now do "cabal update" to initialize the package list        <br>*<br>* Additional packages may be found at <a href="http://hackage.haskell.org">http://hackage.haskell.org</a><br>* or via "cabal list <pattern>"<br>
*<br>* Use "cabal install <foo>" to install additional packages<br>*<br>*******************************************************<br>[dmahar@dmahar haskell-platform-2013.2.0.0]$ cabal update<br>Downloading the latest package list from <a href="http://hackage.haskell.org">hackage.haskell.org</a><br>
Note: there is a new version of cabal-install available.<br>To upgrade, run: cabal install cabal-install<br>[dmahar@dmahar haskell-platform-2013.2.0.0]$ cabal install cabal-install<br>Resolving dependencies...<br>Configuring HTTP-4000.2.11...<br>
Building HTTP-4000.2.11...<br>Preprocessing library HTTP-4000.2.11...<br><br>Network/Stream.hs:35:8:<br>    Could not find module `Control.Monad.Error'<br>    There are files missing in the `mtl-2.1.2' package,<br>
    try running 'ghc-pkg check'.<br>    Use -v to see a list of the files searched for.<br>Failed to install HTTP-4000.2.11<br>cabal: Error: some packages failed to install:<br>HTTP-4000.2.11 failed during the building phase. The exception was:<br>
ExitFailure 1<br>cabal-install-1.18.0.2 depends on HTTP-4000.2.11 which failed to install.<span class=""></span><span class=""></span><br></span><br></div><div>Thank you,<br><br></div><div>Derek<br></div></div>