X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FPackageConfig.hs;h=b16bd5d77f7751e019a1bec1ee7dafb971e2105f;hb=91694be875e6aa507dcb02475b5e17d59df5d796;hp=bfd2f34496d17351bcc1c5938e17013bdbe6fa06;hpb=61d2625ae2e6a4cdae2ffc92df828905e81c24cc;p=ghc-hetmet.git diff --git a/compiler/main/PackageConfig.hs b/compiler/main/PackageConfig.hs index bfd2f34..b16bd5d 100644 --- a/compiler/main/PackageConfig.hs +++ b/compiler/main/PackageConfig.hs @@ -20,6 +20,7 @@ module PackageConfig ( rtsPackageId, haskell98PackageId, thPackageId, + ndpPackageId, mainPackageId ) where @@ -29,7 +30,7 @@ import Distribution.InstalledPackageInfo import Distribution.Package import Distribution.Version import FastString -import Text.ParserCombinators.ReadP ( readP_to_S ) +import Distribution.Compat.ReadP ( readP_to_S ) -- ----------------------------------------------------------------------------- -- Our PackageConfig type is just InstalledPackageInfo from Cabal. Later we @@ -105,6 +106,7 @@ basePackageId = fsToPackageId FSLIT("base") rtsPackageId = fsToPackageId FSLIT("rts") haskell98PackageId = fsToPackageId FSLIT("haskell98") thPackageId = fsToPackageId FSLIT("template-haskell") +ndpPackageId = fsToPackageId FSLIT("ndp") -- This is the package Id for the program. It is the default package -- Id if you don't specify a package name. We don't add this prefix