]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - src/TSN/Team.hs
Make team names and abbreviations optional.
[dead/htsn-import.git] / src / TSN / Team.hs
index d02252011a8025e743efc755fdc49ff5b18cdd0c..910c67120da44aa0b621f1bf3db87315c94694a2 100644 (file)
@@ -33,8 +33,11 @@ import Database.Groundhog.TH (
 data Team =
   Team {
     team_id :: String, -- ^ Some of them contain characters
-    team_abbreviation :: String,
-    team_name :: String }
+    team_abbreviation :: Maybe String, -- ^ Some teams don't have abbreviations,
+                                       --   or at least, some sample jfilexml
+                                       --   don't have them for some teams.
+    team_name :: Maybe String -- ^ Some teams don't even have names!
+    }
   deriving (Eq, Show)