Compiling data
Arjan van IJzendoorn
afie at cs.uu.nl
Thu May 27 08:17:28 EDT 2004
Hi Ketil,
> For a benchmark, I'd like to include a bit of data in the form of a
> list of integer matrices (i.e. [[[Int]]]). While I have about 10000 of
> them, sized about twenty square, even 100 of them takes extremely
> long to compile. Is there a trick to make this faster?
Could you put the data in a file and then read it in?
main = do
contents <- readFile "aLotOfNumbers.txt"
let hugeMatrix = ( read contents ) :: [[[Int]]]
...
Cheers, Arjan
More information about the Glasgow-haskell-users
mailing list