haskell / vector

An efficient implementation of Int-indexed arrays (both mutable and immutable), with a powerful loop optimisation framework .
Other
366 stars 139 forks source link

Drop "possibly" from force's haddocks #513

Closed Shimuuar closed 1 month ago

Shimuuar commented 1 month ago

force indeed copies unconditionally. Even in case like:

force (generate n fun)

In principle GHC could be able to elide copying using rewrite rules related to clone/New in practice it doesn't. So it's better to remove possibly since it will only confuse reader.

Fixes #511