#2955: Data in $HOME/.ghc is not validated leading to obscure error messages 
when
using ghc
----------------------+-----------------------------------------------------
 Reporter:  erikd     |          Owner:                  
     Type:  bug       |         Status:  closed          
 Priority:  normal    |      Milestone:                  
Component:  Compiler  |        Version:  6.8.2           
 Severity:  normal    |     Resolution:  fixed           
 Keywords:            |       Testcase:                  
       Os:  Linux     |   Architecture:  Unknown/Multiple
----------------------+-----------------------------------------------------
Changes (by duncan):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Fortunately this has just been fixed. #2445

 In future you would get an error message like:
 {{{
 Could not find module `System.Process':
   There are files missing in the process-1.0.1.1 package.
   Try running 'ghc-pkg check'.
 }}}

 And if you ran `ghc-pkg check` it would report something like:

 [Note these are just examples and do not match up to the same problem]

 {{{
 $ ghc-pkg check
 There are problems in package syb-0.1.0.0:
   dependency foo-4.0.0.0 doesn't exist
 There are problems in package process-1.0.1.1:
   file System/Process.hi is missing

 The following packages are broken, either because they have a problem
 listed above, or because they depend on a broken package.
 syb-0.1.0.0
 process-1.0.1.1
 base-3.0.3.0
 Cabal-1.7.0
 haskell98-1.0.1.0
 haddock-2.4.2
 ghc-6.11
 }}}

 Of course in your case, where you deleted all the package files  without
 unregistering any of them, then the list of errors reported by `ghc-pkg
 check` would be a good deal longer.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2955#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to