# Expanding TH on external packages

**URL:** <https://discourse.haskell.org/t/expanding-th-on-external-packages/10055>\
**Category:** Learn\
**Created:** [July 30, 2024, 11:44am UTC](https://discourse.haskell.org/t/expanding-th-on-external-packages/10055 "2024-07-30T11:44:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![initial-mockingbird](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/initial-mockingbird/32/3367_2.png) [@initial-mockingbird](https://discourse.haskell.org/u/initial-mockingbird)\
**Post date:** [July 30, 2024, 11:44am UTC](https://discourse.haskell.org/t/expanding-th-on-external-packages/10055/1 "2024-07-30T11:44:35Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![BebeSparkelSparkel](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@BebeSparkelSparkel](https://discourse.haskell.org/u/BebeSparkelSparkel)\
**Post date:** [July 30, 2024, 2:36pm UTC](https://discourse.haskell.org/t/expanding-th-on-external-packages/10055/2 "2024-07-30T14:36:32Z")

</div>

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.
