[GHC] #10284: Create a dedicated `TypeError` exception type