From: Michael Orlitzky Date: Sun, 6 Jul 2014 01:19:36 +0000 (-0400) Subject: Update two comments. X-Git-Tag: 0.0.6~20 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhtsn-import.git;a=commitdiff_plain;h=e96fc68293b6ac51eb0e8a4fe9ac9afa515cca83 Update two comments. --- diff --git a/src/TSN/XML/Scores.hs b/src/TSN/XML/Scores.hs index 66ef90b..8ae86a8 100644 --- a/src/TSN/XML/Scores.hs +++ b/src/TSN/XML/Scores.hs @@ -129,6 +129,9 @@ instance ToDb Message where type Db Message = Score instance FromXml Message where + -- | When converting from the XML representation to the database + -- one, we drop the list of locations which will be foreign-keyed to + -- us instead. from_xml Message{..} = Score { db_xml_file_id = xml_xml_file_id, diff --git a/src/TSN/XML/Weather.hs b/src/TSN/XML/Weather.hs index 351df24..2146c3f 100644 --- a/src/TSN/XML/Weather.hs +++ b/src/TSN/XML/Weather.hs @@ -181,7 +181,8 @@ instance Child WeatherForecastXml where instance FromXmlFk WeatherForecastXml where -- | To convert a 'WeatherForecastXml' into a 'WeatherForecast', we - -- just copy everything verbatim. + -- add the foreign key to the containing 'Weather', and copy the + -- game date. -- from_xml_fk fk WeatherForecastXml{..} = WeatherForecast {