+--
+-- When we parse an XML tree, there are two functions that we would
+-- like to call on the result independent of its type. First, we
+-- would like to be able to run the database migrations for that
+-- type. The migrations are kept separate from insertion because, at
+-- some later point, it make make sense to disable automatic
+-- migrations.
+--
+-- Next we want to import the thing.
+--
+-- Neither of these should depend on the type -- we should just be
+-- able to call 'dbmigrate' followed by 'dbimport' on the
+-- datastructure and have the right thing happen. That is the
+-- purpose of the 'DbImport' typeclass. It allows the XML types to
+-- define their own \"migrate me\" and \"insert me\" functions that
+-- the rest of the application doesn't have to care about.
+--
+module TSN.DbImport (
+ DbImport(..),
+ ImportResult(..),
+ run_dbmigrate )