I don’t think this’ll be easy. The Rust related PR was closed a while ago, with only a small note added to the docs somewhere. I created an issue about the Haskell behaviour, but that has not seen much activity in a while.
If someone could point me into a direction on where to upstream this, I would be glad :)
I posted about whipping up something like this here; maybe it’s what you’re looking for