-- System imports.
import Control.Monad ( forM_ )
import Data.Data ( Data )
+import Data.Maybe ( fromMaybe )
import Data.Time ( UTCTime(..) )
import Data.Tuple.Curry ( uncurryN )
import Data.Typeable ( Typeable )
-- the database with an (embedded) 'MostLapsLeading' with three
-- missing fields.
most_laps_leading =
- case xml_most_laps_leading of
- Just mll -> mll
- Nothing -> MostLapsLeading Nothing Nothing Nothing
+ fromMaybe (MostLapsLeading Nothing Nothing Nothing)
+ xml_most_laps_leading
+
-- | This allows us to insert the XML representation
-- 'AutoRacingResultsRaceInformationXml' directly.