Re: [Haskell-cafe] [Haskell] Importing Repa library

On Thu, 3 Jan 2013, Емануела Моллова wrote:
Hello! :)
I think you should better post your question to haskell-cafe@haskell.org.
Then I put this script
import qualified Data.Array.Repa as R :m +Data.Array.Repa Z
into the file "file.hs",
This is GHCi syntax, but it is not a valid Haskell module as indicated by the .hs filename extension.
opened WinGHCi and loaded the file, and then evaluated it, but what I get is:
Could not find module `Data.Array.Repa' Perhaps you meant Data.Array.Base (from array-0.4.0.0) Data.Array.IO (from array-0.4.0.0) Data.Array.ST (from array-0.4.0.0) Use -v to see a list of the files searched for. Failed, modules loaded: none.
I wonder why it loads file.hs at all. I would expect that it gives a syntax error.
Also ghc-pkg list repa says:
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:
Since 'repa' is not listed, it was not installed successfully. This would be consistent with the "Could not find module" message of GHCi. You may post the output of the 'cabal install repa' run.
participants (1)
-
Henning Thielemann