Thank you @Hlaaftana, not only for the snippet but also for mentioning 
codegenDecl which I was totally unaware of. I just looked it up on the docs and 
I think this may be what I'm looking for so I'm going to investigate this 
further, cheers.

Reply via email to