X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FPackageConfig.hs;h=d195f6cf737251f5c94b1ff90d1397904b6a4ca0;hb=f8c52d7fde2d7408b4f734251c373f8d3e2c558e;hp=bfd2f34496d17351bcc1c5938e17013bdbe6fa06;hpb=61d2625ae2e6a4cdae2ffc92df828905e81c24cc;p=ghc-hetmet.git diff --git a/compiler/main/PackageConfig.hs b/compiler/main/PackageConfig.hs index bfd2f34..d195f6c 100644 --- a/compiler/main/PackageConfig.hs +++ b/compiler/main/PackageConfig.hs @@ -2,6 +2,13 @@ -- (c) The University of Glasgow, 2004 -- +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings +-- for details + module PackageConfig ( -- * PackageId PackageId, @@ -20,6 +27,7 @@ module PackageConfig ( rtsPackageId, haskell98PackageId, thPackageId, + ndpPackageId, mainPackageId ) where @@ -29,7 +37,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 +113,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