Thanks Daniel for confirming this.
I suspect this is caused by some rewrite rules in vector. So I
reported it in their issue-tracker:
http://trac.haskell.org/vector/ticket/63
Regards,
Bas
___
Glasgow-haskell-users mailing list
Hello,
When benchmarking my new vector-bytestring[1] package I discovered
that building the following program causes GHC to go into, what seems
to be, an infinite loop:
import Data.Vector (Vector)
import qualified Data.Vector.Generic as VG
main = print $ VG.foldl f z (VG.fromList [] :: Vector
On 11 October 2011 21:11, Bas van Dijk v.dijk@gmail.com wrote:
Note that the program also builds fine when I change the 'f' and 'z' to:
f = flip (:)
z = []
Oops, I meant to say:
Note that the program also builds fine when I change the 'f' and 'z' to:
f = (+)
z = 0
On Tuesday 11 October 2011, 21:11:30, Bas van Dijk wrote:
Hello,
When benchmarking my new vector-bytestring[1] package I discovered
that building the following program causes GHC to go into, what seems
to be, an infinite loop:
I use vector-0.9 and ghc-7.2.1.
Replicated with