imports :: [ModDesc] -> String
imports = concatMap mkImport . nub . sortBy (comparing modName)
  where
    mkImport m = "import qualified " ++
      (concat . intersperse "." . modName $ m) ++ "\n"

-- | Summarizes a Meta in a single line.
imports :: [ModDesc] -> String
imports = concatMap mkImport . nub . sortBy (comparing modName)
  where
    mkImport m = "import qualified " ++
      (concat . intersperse "." . modName $ m) ++ "\n"

-- | Summarizes a Meta in a single line.
imports = concatMap mkImport . nub . sortBy (comparing modName)
  where
    mkImport m = "import qualified " ++
      (concat . intersperse "." . modName $ m) ++ "\n"

-- | Summarizes a Meta in a single line.