Retrieving names of modules included in a cabal package from parsing the .cabal file
I wonder if there is a way to retrieve the module names of a cabal package from parsing the .cabal files. I have tried to use parsePackageDescription from Distribution.PackageDescription.Parse but for instance when I try parsing the .cabal of the Cabal package itself ( http://hackage.haskell.org/package/Cabal-1.18.1.2/Cabal.cabal ) the library value of PackageDescription is Nothing even though there is a library section with both exposed-modules and other.modules in the .cabal file. Is this intended or am I doing anything wrong? Also, if it is intended, does anyone know any other simple way of