Skip to content
  • Ben Gamari's avatar
    67dd5635
    compiler: Allow more types in GHCForeignImportPrim · 67dd5635
    Ben Gamari authored
    For many, many years `GHCForeignImportPrim` has suffered from the rather
    restrictive limitation of not allowing any non-trivial types in arguments
    or results. This limitation was justified by the code generator allegely
    barfing in the presence of such types.
    
    However, this restriction appears to originate well before the NCG
    rewrite and the new NCG does not appear to have any trouble with such
    types (see the added `T24598` test). Lift this restriction.
    
    Fixes #24598.
    67dd5635
    compiler: Allow more types in GHCForeignImportPrim
    Ben Gamari authored
    For many, many years `GHCForeignImportPrim` has suffered from the rather
    restrictive limitation of not allowing any non-trivial types in arguments
    or results. This limitation was justified by the code generator allegely
    barfing in the presence of such types.
    
    However, this restriction appears to originate well before the NCG
    rewrite and the new NCG does not appear to have any trouble with such
    types (see the added `T24598` test). Lift this restriction.
    
    Fixes #24598.
Loading