Give more informative error messages
authorIan Lynagh <igloo@earth.li>
Sun, 29 Nov 2009 03:10:29 +0000 (03:10 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 29 Nov 2009 03:10:29 +0000 (03:10 +0000)
commitf9460db84b4eb145d1356435127cce0a1a775c70
tree5c545c63f289ebc2f2a0082a5d970a65ede68611
parentf41e3ea766c340c49b829eabfdea7c77bda2a95e
Give more informative error messages
We used to just get
    ghc: panic! (the 'impossible' happened)
      (GHC version 6.13.20091128 for x86_64-unknown-linux):
        too few bytes. Failed reading at byte position 32753
with no indication of what was being parsed.
libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs
libraries/bin-package-db/bin-package-db.cabal