Expanding TH on external packages

Me again! after removing some libraries, my project now depends on:

  • containers
  • mtl
  • transformers
  • singletons
  • singletons-base
  • parsec

Nevertheless, since I’m using ghc-wasm-meta, I cannot really include the singletons-base package (since it depends on th-orphans and the WASM backend doesn’t support TH yet).

I might be able to patch things up, if I can just expand the TH definitions in the singletons-base package, but I don’t really know how to do this without just forking the repo, running cabal build with -ddump-splices -ddump-to-file flags, and manually deleting the _XXXX identifiers.

Is there a better way to do this?

1 Like

Wow! I wouldn’t have even considered this to be a possible issue. Thanks for pointing it out to me.

It totally seems like a language frontend thing that would be completed before even core was generated.

1 Like