Re: [Haskell-cafe] Installing REPA

2012-04-07 Thread Ben Lippmeier

On 07/04/2012, at 9:33 AM, Chris Wong wrote:

 On Sat, Apr 7, 2012 at 2:02 AM, Dominic Steinitz
 idontgetoutm...@googlemail.com wrote:
 Hi,
 
 I'm trying to install REPA but getting the following. Do I just install
 base? Or is it more complicated than that?
 
 Thanks, Dominic.
 
 I think the easiest solution is to just use an older version of Repa.
 According to Hackage, the latest one that works with base 4.3 is Repa
 2.1.1.3:
 
 $ cabal install repa==2.1.1.3

I've just pushed Repa 3 onto Hackage, which has a much better API than the 
older versions, and solves several code fusion problems. However, you'll need 
to upgrade to GHC 7.4 to use it. GHC 7.0.3 is two major releases behind the 
current version.

Ben.



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Installing REPA

2012-04-07 Thread Peter Simons
Hi Ben,

  I've just pushed Repa 3 onto Hackage, which has a much better API
  than the older versions, and solves several code fusion problems.

when using the latest version of REPA with GHC 7.4.1, I have trouble
building the repa-examples package:

 | Building repa-examples-3.0.0.1...
 | Preprocessing executable 'repa-volume' for repa-examples-3.0.0.1...
 | [1 of 1] Compiling Main ( examples/Volume/Main.hs, 
dist/build/repa-volume/repa-volume-tmp/Main.o )
 | Linking dist/build/repa-volume/repa-volume ...
 | Preprocessing executable 'repa-sobel' for repa-examples-3.0.0.1...
 | [1 of 2] Compiling Solver   ( examples/Sobel/src-repa/Solver.hs, 
dist/build/repa-sobel/repa-sobel-tmp/Solver.o )
 | Loading package ghc-prim ... linking ... done.
 | Loading package integer-gmp ... linking ... done.
 | Loading package base ... linking ... done.
 | Loading package array-0.4.0.0 ... linking ... done.
 | Loading package bytestring-0.9.2.1 ... linking ... done.
 | Loading package deepseq-1.3.0.0 ... linking ... done.
 | Loading package containers-0.4.2.1 ... linking ... done.
 | Loading package binary-0.5.1.0 ... linking ... done.
 | Loading package bmp-1.2.1.1 ... linking ... done.
 | Loading package old-locale-1.0.0.4 ... linking ... done.
 | Loading package old-time-1.1.0.0 ... linking ... done.
 | Loading package extensible-exceptions-0.1.1.4 ... linking ... done.
 | Loading package time-1.4 ... linking ... done.
 | Loading package random-1.0.1.1 ... linking ... done.
 | Loading package pretty-1.1.1.0 ... linking ... done.
 | Loading package template-haskell ... linking ... done.
 | Loading package QuickCheck-2.4.2 ... linking ... done.
 | Loading package primitive-0.4.1 ... linking ... done.
 | Loading package vector-0.9.1 ... linking ... done.
 | Loading package repa-3.0.0.1 ... linking ... done.
 | Loading package repa-io-3.0.0.1 ... linking ... done.
 | Loading package repa-algorithms-3.0.0.1 ... linking ... done.
 | [2 of 2] Compiling Main ( examples/Sobel/src-repa/Main.hs, 
dist/build/repa-sobel/repa-sobel-tmp/Main.o )
 | Linking dist/build/repa-sobel/repa-sobel ...
 | Preprocessing executable 'repa-mmult' for repa-examples-3.0.0.1...
 | 
 | examples/MMult/src-repa/Main.hs:3:8:
 | Could not find module `Solver'
 | Use -v to see a list of the files searched for.

When I attempt to use repa 3.1.x, the build won't even get past the
configure stage, because Cabal refuses these dependencies. Is that a
known problem, or am I doing something wrong?

Take care,
Peter


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Installing REPA

2012-04-07 Thread Ben Lippmeier

On 07/04/2012, at 21:38 , Peter Simons wrote:

 Hi Ben,
 
 I've just pushed Repa 3 onto Hackage, which has a much better API
 than the older versions, and solves several code fusion problems.
 
 when using the latest version of REPA with GHC 7.4.1, I have trouble
 building the repa-examples package:
 
 | Building repa-examples-3.0.0.1...
 | Preprocessing executable 'repa-volume' for repa-examples-3.0.0.1...

 When I attempt to use repa 3.1.x, the build won't even get past the
 configure stage, because Cabal refuses these dependencies. Is that a
 known problem, or am I doing something wrong?

It is a conjunction of tedious Cabal and Hackage limitations, as well as my 
failure to actually upload the new repa-examples package.

Please try again now, and if that doesn't work email be the output of:

$ cabal update
$ cabal install repa-examples
$ ghc-pkg list

Thanks,
Ben.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Installing REPA

2012-04-07 Thread Peter Simons
Hi Ben,

  Please try again now.

thank you very much for the quick update! Everything installs fine now.
I've also packaged the latest versions for NixOS. 

Take care,
Peter


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Installing REPA

2012-04-07 Thread Dominic Steinitz

On 07/04/2012 11:14, Ben Lippmeier wrote:

On 07/04/2012, at 9:33 AM, Chris Wong wrote:


On Sat, Apr 7, 2012 at 2:02 AM, Dominic Steinitz
idontgetoutm...@googlemail.com  wrote:

Hi,

I'm trying to install REPA but getting the following. Do I just install
base? Or is it more complicated than that?

Thanks, Dominic.

I think the easiest solution is to just use an older version of Repa.
According to Hackage, the latest one that works with base 4.3 is Repa
2.1.1.3:

$ cabal install repa==2.1.1.3

I've just pushed Repa 3 onto Hackage, which has a much better API than the 
older versions, and solves several code fusion problems. However, you'll need 
to upgrade to GHC 7.4 to use it. GHC 7.0.3 is two major releases behind the 
current version.

Ben.



Hi Ben, Chris and Others,

Thanks for your replies and suggestions. All I want to do is invert 
(well solve actually) a tridiagonal matrix so upgrading ghc from the 
version that comes with the platform seems a bit overkill. I think I 
will go with Chris' suggestion for now and maybe upgrade ghc (and REPA) 
when I am feeling braver.


Dominic.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Installing REPA

2012-04-06 Thread Dominic Steinitz

Hi,

I'm trying to install REPA but getting the following. Do I just install 
base? Or is it more complicated than that?


Thanks, Dominic.

Tests-MacBook-Pro:PDE Test$ cabal install repa
Resolving dependencies...
cabal: cannot configure repa-2.2.0.1. It requires base ==4.4.*
For the dependency on base ==4.4.* there are these packages: 
base-4.4.0.0 and

base-4.4.1.0. However none of them are available.
base-4.4.0.0 was excluded because of the top level dependency base -any
base-4.4.1.0 was excluded because of the top level dependency base -any

Tests-MacBook-Pro:PDE Test$ cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
Tests-MacBook-Pro:PDE Test$

Tests-MacBook-Pro:PDE Test$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.3


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Installing REPA

2012-04-06 Thread Dmitry Dzhus
06.04.2012, 18:02, Dominic Steinitz idontgetoutm...@googlemail.com:

 cabal: cannot configure repa-2.2.0.1. It requires base ==4.4.*

 Tests-MacBook-Pro:PDE Test$ ghc --version
 The Glorious Glasgow Haskell Compilation System, version 7.0.3

I think this might be because base-4.3 was shipped with GHC 7.0 series: 
http://www.haskell.org/ghc/docs/7.0.3/html/libraries/index.html

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Installing REPA

2012-04-06 Thread Rogan Creswick
On Fri, Apr 6, 2012 at 7:02 AM, Dominic Steinitz
idontgetoutm...@googlemail.com wrote:
 Hi,

 I'm trying to install REPA but getting the following. Do I just install
 base?

The only safe way to upgrade base is to upgrade GHC -- I'm not sure
which ghc has base-4.4 though (Based on Dmitry's comment, maybe 7.2?)

--Rogan


 Thanks, Dominic.

 Tests-MacBook-Pro:PDE Test$ cabal install repa
 Resolving dependencies...
 cabal: cannot configure repa-2.2.0.1. It requires base ==4.4.*
 For the dependency on base ==4.4.* there are these packages: base-4.4.0.0
 and
 base-4.4.1.0. However none of them are available.
 base-4.4.0.0 was excluded because of the top level dependency base -any
 base-4.4.1.0 was excluded because of the top level dependency base -any

 Tests-MacBook-Pro:PDE Test$ cabal --version
 cabal-install version 0.10.2
 using version 1.10.1.0 of the Cabal library
 Tests-MacBook-Pro:PDE Test$

 Tests-MacBook-Pro:PDE Test$ ghc --version
 The Glorious Glasgow Haskell Compilation System, version 7.0.3


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Installing REPA

2012-04-06 Thread Chris Wong
On Sat, Apr 7, 2012 at 2:02 AM, Dominic Steinitz
idontgetoutm...@googlemail.com wrote:
 Hi,

 I'm trying to install REPA but getting the following. Do I just install
 base? Or is it more complicated than that?

 Thanks, Dominic.

I think the easiest solution is to just use an older version of Repa.
According to Hackage, the latest one that works with base 4.3 is Repa
2.1.1.3:

$ cabal install repa==2.1.1.3

Chris

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe