I couldn’t find a package similar to Haskell’s value-supply in Purescript, so wrote one here - https://github.com/ajnsit/purescript-supply. Feedback appreciated!
PS: The repo also includes an implentation of unsafeInterleaveIO
from Haskell (named unsafeInterleaveEffect
in Purescript). https://github.com/ajnsit/purescript-supply/blob/main/src/Supply.purs#L45