
On 10/20/08 11:38, Justin Bailey wrote:
On Mon, Oct 20, 2008 at 9:25 AM, Larry Evans
wrote:
[snip]
Do you mean install it manually as shown in the aforementioned How_to_install_a_Cabal_package?
No, I mean go to http://hackage.haskell.org and download the .tar.gz file directly (http://hackage.haskell.org/cgi-bin/hackage-scripts/package/category-extras). Unzip/untar that package. I haven't looked at it, but there is probably a "src" directory. Put your example file in there and load it in ghci. Your source file should then use the source available in that directory tree rather than the category-extras install which seems broken. This works because the GHC will look at the import "Control.Functor.Fix" and use that to look for "Control/Functor/Fix.hs" from the current directory.
Tried that but: <--- cut here --- GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. Prelude> :load "/home/evansl/download/haskell/libs/category-extras-0.53.5/src/catamorphism.example.hs" Control/Category/Dual.hs:17:7: Could not find module `Control.Category': Use -v to see a list of the files searched for. Failed, modules loaded: none. Prelude> <--- cut here --- If it's any help, the directory list for src/Control/Category is: <--- cut here --- /home/evansl/download/haskell/libs/category-extras-0.53.5/src/Control/Category: total used in directory 52 available 148798604 drwxr-xr-x 3 evansl evansl 4096 Jun 30 08:08 . drwxr-xr-x 9 evansl evansl 4096 Jun 30 08:08 .. -rw-r--r-- 1 evansl evansl 2118 Jun 30 08:08 Associative.hs -rw-r--r-- 1 evansl evansl 1668 Jun 30 08:08 Braided.hs drwxr-xr-x 2 evansl evansl 4096 Jun 30 08:08 Cartesian -rw-r--r-- 1 evansl evansl 4973 Jun 30 08:08 Cartesian.hs -rw-r--r-- 1 evansl evansl 1020 Jun 30 08:08 Discrete.hs -rw-r--r-- 1 evansl evansl 1340 Jun 30 08:08 Distributive.hs -rw-r--r-- 1 evansl evansl 668 Jun 30 08:08 Dual.hs -rw-r--r-- 1 evansl evansl 578 Jun 30 08:08 Hask.hs -rw-r--r-- 1 evansl evansl 3254 Jun 30 08:08 Monoidal.hs -rw-r--r-- 1 evansl evansl 1746 Jun 30 08:08 Object.hs
--- cut here --- You might have more luck finding out what's going on by emailing Haskell-Cafe directly, too.
Yes, thanks.
Justin