[project @ 2003-01-06 15:18:48 by simonpj]
authorsimonpj <unknown>
Mon, 6 Jan 2003 15:18:48 +0000 (15:18 +0000)
committersimonpj <unknown>
Mon, 6 Jan 2003 15:18:48 +0000 (15:18 +0000)
dieWith uses ProgramError, not UsageError

ghc/compiler/ghci/Linker.lhs

index 727bfc1..b608206 100644 (file)
@@ -204,7 +204,7 @@ linkExpr hsc_env pcs root_ul_bco
      needed_mods :: [Module]
      needed_mods = [ nameModule n | n <- free_names, isExternalName n ]
  
-dieWith msg = throwDyn (UsageError (showSDoc msg))
+dieWith msg = throwDyn (ProgramError (showSDoc msg))
 
 getLinkDeps :: HomePackageTable -> PackageIfaceTable
            -> [Module]                         -- If you need these