[project @ 2002-09-09 12:10:01 by simonmar]
authorsimonmar <unknown>
Mon, 9 Sep 2002 12:10:01 +0000 (12:10 +0000)
committersimonmar <unknown>
Mon, 9 Sep 2002 12:10:01 +0000 (12:10 +0000)
Urk, the 'import Pretty' in this module was a bit of a hack; when
compiled as part of the standalone ghc-pkg tool it referred to the
Pretty library from the util package, but when compiled as part of the
compiler it referred to the compiler's own Pretty module.  Hack around
this.

ghc/utils/ghc-pkg/Package.hs

index 85855b7..2fb7690 100644 (file)
@@ -1,5 +1,5 @@
 -----------------------------------------------------------------------------
--- $Id: Package.hs,v 1.4 2002/09/09 11:32:38 simonmar Exp $
+-- $Id: Package.hs,v 1.5 2002/09/09 12:10:01 simonmar Exp $
 --
 -- Package configuration defn.
 -----------------------------------------------------------------------------
@@ -17,7 +17,7 @@ module Package (
 #endif
 
 #ifdef WANT_PRETTY
-#if __GLASGOW_HASKELL__ >= 504
+#if __GLASGOW_HASKELL__ >= 504 && !defined(INTERNAL_PRETTY)
 import Text.PrettyPrint
 #else
 import Pretty