<div>Hello! :) I want to write a simple application, using the Repa library as a university project, but I don't know much about Haskell. I'm using Windows, so I downloaded and installed Haskell platform for Windows, then I run in the command prompt cabal update, then cabal install cabal-install and then cabal install repa and everything seemed fine. Then I put this script <br>
</div><div><br></div><div>import qualified Data.Array.Repa as R<br>:m +Data.Array.Repa<br>Z</div><div><br></div><div>into the file "file.hs", opened WinGHCi and loaded the file, and then evaluated it, but what I get is: </div>
<div><br></div><div>Could not find module `Data.Array.Repa'<br> Perhaps you meant<br> Data.Array.Base (from array-0.4.0.0)<br> <a href="http://Data.Array.IO">Data.Array.IO</a> (from array-0.4.0.0)<br> <a href="http://Data.Array.ST">Data.Array.ST</a> (from array-0.4.0.0)<br>
Use -v to see a list of the files searched for.<br>Failed, modules loaded: none.<br></div><div><br></div><div>I read that "This happens when you install a package globally, and the previous packages were installed locally. Note that cabal-install install locally by default and the "runhaskell Setup" commands install globally by default.", but I think that I installed Repa locally, not globally.</div>
<div><br></div><div>Also ghc-pkg list repa says:</div><div><br></div><div>WARNING: cache is out of date: C:/Program Files/Haskell Platform/2012.4.0.0\lib\package.conf.d\package.cache use 'ghc-pkg recache' to fix. C:/Program Files/Haskell Platform/2012.4.0.0\lib\package.conf.d: C:\Users\Faery\AppData\Roaming\ghc\i386mingw32-7.4.2\package.conf.d: </div>
<div><br></div><div>And after executing recache, I get the same. </div><div><br></div><div>Please help me to fix this issue and to be able to use the library. </div><div>Thank you very much in advance for your time and goodness! </div>