Simplify conversion in binary serialisation of ghc-pkg db
authorDuncan Coutts <duncan@well-typed.com>
Tue, 19 Aug 2014 00:00:54 +0000 (01:00 +0100)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Fri, 29 Aug 2014 11:39:03 +0000 (12:39 +0100)
commit69e9f6e48f938ce62a885a9086392ffd6a579c29
treee8e7e36ed09ed814e4e9849ab0ca489f0306ba7e
parentb2affa0f213f08acd1c0bb0f2a5e8b2a70272a0b
Simplify conversion in binary serialisation of ghc-pkg db

We can serialise directly, without having to convert some fields to
string first.

(Part of preparitory work for removing the compiler's dep on Cabal)
libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs
utils/ghc-pkg/Main.hs