[Template-haskell] How to extract name and type of exported functions in modules