diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2021-12-08 08:38:42 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-12-17 21:21:32 -0500 |
commit | 5d5620bc1001c6a0689c57c23272b398ae9937d1 (patch) | |
tree | 620615103d7894f69bd190fd0498c38c48325627 /testsuite | |
parent | 3c3e5c03c9890ba33bd2ac7239161738584dc473 (diff) | |
download | haskell-5d5620bc1001c6a0689c57c23272b398ae9937d1.tar.gz |
Change isUnliftedTyCon to marshalablePrimTyCon (#20401)
isUnliftedTyCon was used in three places: Ticky, Template Haskell
and FFI checks.
It was straightforward to remove it from Ticky and Template Haskell.
It is now used in FFI only and renamed to marshalablePrimTyCon.
Previously, it was fetching information from a field
in PrimTyCon called is_unlifted. Instead, I've changed the code
to compute liftedness based on the kind.
isFFITy and legalFFITyCon are removed. They were only referred from
an old comment that I removed.
There were three functions to define a PrimTyCon, but the only difference
was that they were setting is_unlifted to True or False.
Everything is now done in mkPrimTyCon.
I also added missing integer types in Ticky.hs, I think it was an oversight.
Fixes #20401
Diffstat (limited to 'testsuite')
0 files changed, 0 insertions, 0 deletions