[Haskell] Importing Repa library

Henning Thielemann lemming at henning-thielemann.de
Thu Jan 3 14:13:24 CET 2013

On Thu, 3 Jan 2013, Емануела Моллова wrote:

> Hello! :)

I think you should better post your question to haskell-cafe at 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-
> Data.Array.IO (from array-
> Data.Array.ST (from array-
> 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.

More information about the Haskell mailing list