]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - src/TSN/XML/Injuries.hs
Fix typos and use xpAttrImplies where appropriate (one case).
[dead/htsn-import.git] / src / TSN / XML / Injuries.hs
index f7eba8d7a072796c08aca39a1dab9a76d3a3c586..94baa19758ad1cbf961c8a2f0a690f3763ba1538 100644 (file)
@@ -38,7 +38,7 @@ import Text.XML.HXT.Core (
   PU,
   xp4Tuple,
   xp6Tuple,
-  xpAttr,
+  xpAttrImplied,
   xpElem,
   xpInt,
   xpList,
@@ -131,7 +131,7 @@ pickle_injuries_team :: PU InjuriesTeam
 pickle_injuries_team =
   xpElem "team" $
     xpWrap (from_tuple, to_tuple) $
-    xpPair xpText (xpOption $ xpAttr "league" xpText)
+    xpPair xpText (xpAttrImplied "league" xpText)
   where
     from_tuple = uncurryN InjuriesTeam
     to_tuple m = (team_name m, team_league m)
@@ -189,7 +189,7 @@ injuries_tests =
 
 
 -- | If we unpickle something and then pickle it, we should wind up
---   with the same thing we started with. WARNING: succeess of this
+--   with the same thing we started with. WARNING: success of this
 --   test does not mean that unpickling succeeded.
 --
 test_pickle_of_unpickle_is_identity :: TestTree