dumpCabalConfiguration :: FilePath -> IO ()
dumpCabalConfiguration cabalFile = do
    genericDesc <-
#if Cabal2
        readGenericPackageDescription silent cabalFile
#else
        readPackageDescription silent cabalFile
#endif
    case getConcretePackageDescription genericDesc of
        Left e        -> putStrLn $ "Issue with package configuration\n" ++ show e
        Right pkgDesc -> print =<< dumpPackageDescription pkgDesc cabalFile
dumpCabalConfiguration :: FilePath -> IO ()
dumpCabalConfiguration cabalFile = do
    genericDesc <-
#if Cabal2
        readGenericPackageDescription silent cabalFile
#else
        readPackageDescription silent cabalFile
#endif
    case getConcretePackageDescription genericDesc of
        Left e        -> putStrLn $ "Issue with package configuration\n" ++ show e
        Right pkgDesc -> print =<< dumpPackageDescription pkgDesc cabalFile
dumpCabalConfiguration cabalFile = do
    genericDesc <-
#if Cabal2
        readGenericPackageDescription silent cabalFile
#else
        readPackageDescription silent cabalFile
#endif
    case getConcretePackageDescription genericDesc of
        Left e        -> putStrLn $ "Issue with package configuration\n" ++ show e
        Right pkgDesc -> print =<< dumpPackageDescription pkgDesc cabalFile