from_xml JFileGameAwayTeamXml{..} =
Team {
team_id = away_team_id,
- team_abbreviation = away_team_abbreviation,
- team_name = away_team_name }
+ abbreviation = away_team_abbreviation,
+ name = away_team_name }
-- | Allow us to import JFileGameAwayTeamXml directly.
instance XmlImport JFileGameAwayTeamXml
from_xml JFileGameHomeTeamXml{..} =
Team {
team_id = home_team_id,
- team_abbreviation = home_team_abbreviation,
- team_name = home_team_name }
+ abbreviation = home_team_abbreviation,
+ name = home_team_name }
-- | Allow us to import JFileGameHomeTeamXml directly.
instance XmlImport JFileGameHomeTeamXml