Skip to content

Handle promoted data constructors in typeToLHsType correctly

Ryan Scott requested to merge wip/T18020 into master

Instead of using nlHsTyVar, which hardcodes NotPromoted, have typeToLHsType pick between Promoted and NotPromoted by checking if a type constructor is promoted using isPromotedDataCon.

Fixes #18020 (closed).

Merge request reports