DiazCarrete, I was trying to reproduce some of the laziness issues described in this old (2016) but very in-depth article at the Well-Typed blog:
https://well-typed.com/blog/2016/09/sharing-conduit/
But I'm not able to reproduce them when compiling with -O2 --rtsopts (and using GHCRTS=-M20m to limit the size of the heap so that it fails faster in case of a leak) on GHC 9.6.2.I wonder what has changed in the meantime.
https://gist.github.com/danidiaz/512aaf61e068a650ba5d4908758e30bd