X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTSN%2FXML%2FScores.hs;h=8ae86a8355e3fc24dcb1d208fe66c712b61d7868;hb=e96fc68293b6ac51eb0e8a4fe9ac9afa515cca83;hp=66ef90bee4ae31eb753094cefbb302e850d33afa;hpb=5fab11f240d5632f1847b658426805861d7b4d70;p=dead%2Fhtsn-import.git 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,