summaryrefslogtreecommitdiff
path: root/compiler/main/Packages.hs-boot
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2015-04-06 11:32:14 -0700
committerEdward Z. Yang <ezyang@cs.stanford.edu>2015-04-17 03:10:49 -0700
commitad6d6a76eeeb9e33a96054f18c1306e9ebafa652 (patch)
tree4815e2c0983d6050343385f7fa4d521ab5571a22 /compiler/main/Packages.hs-boot
parent2b3766b59f58ad12e86b11ef0322ab0bcc490e52 (diff)
downloadhaskell-ad6d6a76eeeb9e33a96054f18c1306e9ebafa652.tar.gz
Stub out pkgState with non-error, helps with debugging.
Summary: When we use -dppr-debug, we'll sometimes attempt to hit the pkgState to give more detailed information. It's pretty annoying to have this fail because we haven't filled in the pkgState: we can still get useful debugging information by printing the raw package key. To avoid this, we just put in some empty stub pkgState, to be filled in later. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonpj, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D817
Diffstat (limited to 'compiler/main/Packages.hs-boot')
-rw-r--r--compiler/main/Packages.hs-boot1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/main/Packages.hs-boot b/compiler/main/Packages.hs-boot
index f2343b66c9..bac04bc20a 100644
--- a/compiler/main/Packages.hs-boot
+++ b/compiler/main/Packages.hs-boot
@@ -4,3 +4,4 @@ import {-# SOURCE #-} Module (PackageKey)
import {-# SOURCE #-} DynFlags (DynFlags)
data PackageState
packageKeyPackageIdString :: DynFlags -> PackageKey -> Maybe String
+emptyPackageState :: PackageState