Re: [Haskell] page renaming on the Haskell Wiki

2006-02-22 Thread Wolfgang Jeltsch
Am Mittwoch, 22. Februar 2006 06:24 schrieb Donald Bruce Stewart: > [...] > Though the renamings (which I agree with) did break some internal links. What links did they break? Actually, I took care to update at least redirects which pointed to the old titles, since MediaWiki doesn't handle mult

[Haskell] Compilation of big, computed tables

2006-02-22 Thread Stefan Karrmann
Dear all, can ghc compile huge tables into efficient code if they are constant at compile time? Two examples may clearify the question: big1 :: UArray Int Char big1 = array (0,1000) $! map (\i -> (i,toEnum i)) [0..1000] big2 = sum [0..1]::Int -- == 50005000 == n*(n+1)/2 where n = 1 Bot

Re: [Haskell] Compilation of big, computed tables

2006-02-22 Thread Chris Kuklewicz
Stefan Karrmann wrote: > Dear all, > > can ghc compile huge tables into efficient code if they are constant at > compile time? > > Two examples may clearify the question: > > big1 :: UArray Int Char > big1 = array (0,1000) $! map (\i -> (i,toEnum i)) [0..1000] > > big2 = sum [0..1]::Int --