Skip to content
  • Matthew Pickering's avatar
    5e1d33d7
    Convert interface file loading errors into proper diagnostics · 5e1d33d7
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    This patch converts all the errors to do with loading interface files
    into proper structured diagnostics.
    
    * DriverMessage: Sometimes in the driver we attempt to load an interface
      file so we embed the IfaceMessage into the DriverMessage.
    * TcRnMessage: Most the time we are loading interface files during
      typechecking, so we embed the IfaceMessage
    
    This patch also removes the TcRnInterfaceLookupError constructor which
    is superceded by the IfaceMessage, which is now structured compared to
    just storing an SDoc before.
    5e1d33d7
    Convert interface file loading errors into proper diagnostics
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    This patch converts all the errors to do with loading interface files
    into proper structured diagnostics.
    
    * DriverMessage: Sometimes in the driver we attempt to load an interface
      file so we embed the IfaceMessage into the DriverMessage.
    * TcRnMessage: Most the time we are loading interface files during
      typechecking, so we embed the IfaceMessage
    
    This patch also removes the TcRnInterfaceLookupError constructor which
    is superceded by the IfaceMessage, which is now structured compared to
    just storing an SDoc before.
Loading