Hi,
The code below compiles fine as it is, but if I change the import statement
to:
import Data.Array.Unboxed
I get the following error:
philip-beadlings-imac-g5:MonteCarlo phil$ ghc -O2 --make test.hs
[2 of 5] Compiling InverseNormal( InverseNormal.hs, InverseNormal.o )
2009/2/21 Phil pbeadl...@mail2web.com:
InverseNormal.hs:28:38:
No instance for (IArray a1 Double)
arising from a use of `!' at InverseNormal.hs:28:38-40
Possible fix: add an instance declaration for (IArray a1 Double)
In the first argument of `(*)', namely `c ! 1'
In
Thanks for the tip - I got it to work using:
a :: UArray Int Double
And so on.
Cheers,
Phil.
On 22/02/2009 01:05, Felipe Lessa felipe.le...@gmail.com wrote:
2009/2/21 Phil pbeadl...@mail2web.com:
InverseNormal.hs:28:38:
No instance for (IArray a1 Double)
arising from a
On Sat, Feb 21, 2009 at 10:26 PM, Phil pbeadl...@mail2web.com wrote:
Thanks for the tip - I got it to work using:
a :: UArray Int Double
And so on.
That's nice. I should have noted as well that you may say just
a, b, c, d :: UArray Int Double
or, even better,
type DataArray = UArray