well-typed / generics-sop

Generic Programming using True Sums of Products
BSD 3-Clause "New" or "Revised" License
157 stars 48 forks source link

[feat] add initial support for unlifted types #162

Closed MangoIV closed 4 months ago

MangoIV commented 1 year ago

Note This is a draft for adding support for unlifted types for generics-sop, according to #155


Status


Warning Due to a bug in GHC, this only works on GHC 9.4 >= 9.4.6 it hasn't been backported to GHC 9.6 but should exist in GHC 9.8 I would also expect that it will get soon backported to GHC 9.6

MangoIV commented 1 year ago

update: the PR to GHC that fixes the issue sometimes doesn't actually seem to fix this issue here as it is not only related to the interpreter but also segfaults after building normally

MangoIV commented 1 year ago

https://gitlab.haskell.org/ghc/ghc/-/issues/23146#note_488309

the root of the issues have been found and a fix exists <3