Skip to content
  • Rik Steenkamp's avatar
    Fix two wrong uses of "data constructor" in error msgs · af5a0e50
    Rik Steenkamp authored and Ben Gamari's avatar Ben Gamari committed
    Replace `NoDataKinds :: PromotionErr` by `NoDataKindsTC` and
    `NoDataKindsDC` (just like there is `NoTypeInTypeTC` and
    `NoTypeInTypeDC`). This allows for a correct error message when a kind
    signature contains a type constructor and `-XDataKinds` is not
    specified.
    
    Apply a small fix to `TcError.hs` where instead of "data constructor" we
    should say "pattern synonym".
    
    Reviewers: austin, goldfire, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: goldfire, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1909
    af5a0e50