Open seanhess opened 7 months ago
Wait, this gets stranger. I had forgotten to remove all my dependencies from my cabal file when stripping the project down to a reproducible example. This only happens if I also include morpheus-graphql. Here are dependencies that reproduce:
dependencies:
- base >=4.16.4.0
- aeson == 2.1.2.1
- morpheus-graphql-client >= 0.27
- morpheus-graphql-core
- morpheus-graphql >= 0.27
- rel8
Note that Morpheus is not referenced anywhere in the codebase, it's simply listed in the dependencies.
So it only happens when I derive Rel8able AND morpheus is in my dependencies. Any idea what's going on?
I am experiencing extremely slow startup times in my application. I'm working on a web interface and I need tight reload times to see design changes as I make them. I stripped down my app and narrowed the issue down to Rel8. If my app has a record that derives Rel8able it takes a long time to start, and it gets worse in proportion to the number of fields. In my app I'm experiencing 2-3 second delays.
I'm using ghc 9.4.7, Ventura 13.4.1, cabal 3.10.2.0.
Minimal example. Run in cabal repl. Notice the ~1s delay between when you hit enter to run
main
and when the output appears. You can see it happen over and over if you reload with:r
and runmain
again.