dreixel / generic-deriving

BSD 3-Clause "New" or "Revised" License
44 stars 32 forks source link

Generate `INLINE [1]` pragmas for TH-derived instance #90

Closed RyanGlScott closed 1 year ago

RyanGlScott commented 1 year ago

This backports changes to GHC's treatment of derived Generic(1) instances in https://gitlab.haskell.org/ghc/ghc/-/merge_requests/2965, which affect GHC 9.2 or later. The Template Haskell-based implementation is here is adapted from linear-generics (see https://github.com/linear-generics/linear-generics/pull/21).

Fixes https://github.com/dreixel/generic-deriving/issues/89.