Closed natefaubion closed 5 years ago
Does defer
not make it lazy?
mkCofree
uses defer, but it takes the argument strictly https://github.com/purescript/purescript-free/blob/master/src/Control/Comonad/Cofree.purs#L40. If you added your own defer you'd have Lazy leaves, but not a Lazy spine.
Exporting it is fine with me 👍
Was this resolved by #92?
Yes, you can use deferCofree
now.
Currently there's no way to make a single lazy Cofree node since the constructor is not exported, and mkCofree is strict.