]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - src/TSN/XML/Scores.hs
Update TSN.XML modules to use the new Child class.
[dead/htsn-import.git] / src / TSN / XML / Scores.hs
index ef2330c6060f01686d6c1499d265c73d1f6b6fab..66ef90bee4ae31eb753094cefbb302e850d33afa 100644 (file)
@@ -67,6 +67,7 @@ import TSN.DbImport ( DbImport(..), ImportResult(..), run_dbmigrate )
 import TSN.Picklers ( xp_time_stamp )
 import TSN.XmlImport ( XmlImport(..), XmlImportFk(..) )
 import Xml (
+  Child(..),
   FromXml(..),
   FromXmlFk(..),
   ToDb(..),
@@ -202,12 +203,15 @@ instance ToDb ScoreGameXml where
   --
   type Db ScoreGameXml = ScoreGame
 
-instance FromXmlFk ScoreGameXml where
+
+instance Child ScoreGameXml where
   -- | Each 'ScoreGameXml' is contained in (i.e. has a foreign key to)
   --   a 'Score'.
   --
   type Parent ScoreGameXml = Score
 
+
+instance FromXmlFk ScoreGameXml where
   from_xml_fk fk ScoreGameXml{..} =
     ScoreGame {
       db_scores_id = fk,