scalaz/scalaz — Issue #75: parMap on a large List in 6.0.4 fails with a StackOverflowError.
Author: seanparsons
Created: 2012-02-19 00:54:23+00:00
State: open

```scala
scala> val list = (1 to 1000000).toList
list: List[Int] = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10...
scala> list.parMap(value => List(value, value * 2, value % 4)).get
java.lang.StackOverflowError
at scalaz.Identity$$anon$1.value(Identity.scala:170)
at scalaz.Functor$$anon$4$$anonfun$fmap$1.apply(Functor.scala:24)
at scalaz.Identity$$anon$1.value(Identity.scala:170)
at scalaz.Functor$$anon$4$$anonfun$fmap$1.apply(Functor.scala:24)
at scalaz.Identity$$anon$1.value(Identity.scala:170)
at scalaz.Functor$$anon$4$$anonfun$fmap$1.apply(Functor.scala:24)
```