]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - src/TSN/XML/Injuries.hs
Begin validating the XML.
[dead/htsn-import.git] / src / TSN / XML / Injuries.hs
index bea54d3c029deea97f395c4b444d538d9b24ead9..f425f89db33fe828dead2dbd047de18bc753f2ba 100644 (file)
@@ -96,7 +96,7 @@ pickle_injuries_team :: PU InjuriesTeam
 pickle_injuries_team =
   xpElem "team" $
     xpWrap (from_tuple, to_tuple) $
-    xpPair xpText (xpAttr "league" (xpOption xpText))
+    xpPair xpText (xpOption $ xpAttr "league" xpText)
   where
     from_tuple = uncurryN InjuriesTeam
     to_tuple m = (team_name m, team_league m)