Skip to content

Persistent TH generates splice so large that GHCI runs out labels #1262

@tysonzero

Description

@tysonzero

This is with around 70 tables, generally with <10 fields each.

The compile times are also quite long.

It seems like the newest GHC's increase the amount of bits used for labels to avoid this problem, but a lot of libraries (and GHCJS) are not up to date enough to use these GHC's.

I was wondering if it would be possible to tweak things so that less code is generated while maintaining the same functionality.

It seems like manually writing out instances is pretty verbose too. Opaleye seems to be more concise in this regard, so it might be a useful reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions