Skip to content
  • Krzysztof Gogolewski's avatar
    Remove VoidRep from PrimRep, introduce PrimOrVoidRep · d471d445
    Krzysztof Gogolewski authored and Marge Bot's avatar Marge Bot committed
    This introduces
    
    data PrimOrVoidRep = VoidRep | NVRep PrimRep
    
    changes typePrimRep1 to return PrimOrVoidRep, and adds a new function
    typePrimRepU to be used when the argument is definitely non-void.
    Details in Note [VoidRep] in GHC.Types.RepType.
    
    Fixes #19520
    d471d445