Regarding How to elegantly represent finite Haskell recursive datastructure in Python?, I was thinking how would I represent an infinite data structure (without any non-constructor function inside it) from Haskell in Python using Haskell FFI.
Unfortunately I haven't found anything as elegant as was in this great this answer (JSON representation of finite structure) from leftaroundabout.
Is there any similarly elegant way to represent infinite data structure from Haskell to Python?
I suggest one of two routes.
data-reify
to be able to do this while retaining the usual syntax for constructing and pattern matching on your custom types.