[Haskell-cafe] Array use breaks when I make it unboxed?

2009-02-21 Thread Phil
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 )

Re: [Haskell-cafe] Array use breaks when I make it unboxed?

2009-02-21 Thread Felipe Lessa
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

Re: [Haskell-cafe] Array use breaks when I make it unboxed?

2009-02-21 Thread Phil
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

Re: [Haskell-cafe] Array use breaks when I make it unboxed?

2009-02-21 Thread Felipe Lessa
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