Skip to content
  • Alfredo Di Napoli's avatar
    Port HsToCore messages to new infrastructure · d5b89ed4
    Alfredo Di Napoli authored and Marge Bot's avatar Marge Bot committed
    This commit converts a bunch of HsToCore (Ds) messages to use the new
    GHC's diagnostic message infrastructure. In particular the DsMessage
    type has been expanded with a lot of type constructors, each
    encapsulating a particular error and warning emitted during desugaring.
    
    Due to the fact that levity polymorphism checking can happen both at the
    Ds and at the TcRn level, a new `TcLevityCheckDsMessage` constructor has
    been added to the `TcRnMessage` type.
    d5b89ed4