X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTSN%2FXML%2FInjuries.hs;h=94baa19758ad1cbf961c8a2f0a690f3763ba1538;hb=610f18c6810edc6bb5dee5cad8bff9e8e59b408a;hp=f7eba8d7a072796c08aca39a1dab9a76d3a3c586;hpb=7520249efde66c7ae3c09a3f277097039a0073da;p=dead%2Fhtsn-import.git diff --git a/src/TSN/XML/Injuries.hs b/src/TSN/XML/Injuries.hs index f7eba8d..94baa19 100644 --- a/src/TSN/XML/Injuries.hs +++ b/src/TSN/XML/Injuries.hs @@ -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