[Haskell-beginners] Creating arrays in Haskell
Karol Samborski
edv.karol
Wed Oct 2 10:11:15 UTC 2013
2013/10/2 Michal Kawalec <michal at bazzle.me>
> Hello,
>
> I want to use the FFT library in Haskell and for that I need to create
> an array. However, when I input
>
> array (1,100) [(i, i*i) | i <- [1..100]]
>
>
Hi Michal,
I think you should just add type signature to the [1..100], like this:
array (1,100) [(i, i*i) | i <- ([1..100]::[Int])]
Best,
Karol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20131002/1e90a5d3/attachment.html>
More information about the Beginners
mailing list