
I have the impression that it's useful to you to see how often the state hack trips people up, so I've added some more comments to http://hackage.haskell.org/trac/ghc/ticket/2284 ...about how it bit me. This is a real headache. To be frank, controlling lazy evaluation and sharing to get the right complexity for your code can be hard enough at the best of times, without the compiler sometimes ignoring the sharing you try to ask for...

| This is a real headache. To be frank, controlling lazy evaluation and | sharing to get the right complexity for your code can be hard enough at | the best of times, without the compiler sometimes ignoring the sharing | you try to ask for... Yes, I agree. The trade off is that without the hack all programs go a bit slower, and I don't know how to fix that. I have not measured this effect recently; maybe it's small. Thanks for updating the ticket with more info; v helpful S
participants (2)
-
Jules Bean
-
Simon Peyton-Jones