Dependencies from .cabal files

Erik de Castro Lopo mle+hs at mega-nerd.com
Wed Jul 1 08:24:53 EDT 2009


Erik de Castro Lopo wrote:

> I actually did try finalizePackageDescription before flattenPackageDescription
> but I couldn't get it to typecheck.

Thanks to Peaker and Saizan on IRC helped me fix it:

    finalize :: GenericPackageDescription -> PackageDescription
    finalize generic =
        either (error . show) fst r
      where
        compiler = DC.CompilerId DC.GHC (Version [6, 10, 3] [])
        flags = [(FlagName "splitBase", True)]
        packageIndex = Nothing :: Maybe (PackageIndex PackageIdentifier)
        r = finalizePackageDescription flags packageIndex DS.Linux DS.I386 compiler [] generic

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the cabal-devel mailing list