Switch the package id types to use FastString (rather than String)
authorDuncan Coutts <duncan@well-typed.com>
Sun, 24 Aug 2014 20:59:03 +0000 (21:59 +0100)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Fri, 29 Aug 2014 11:39:05 +0000 (12:39 +0100)
commitc72efd7cee77d5f934bbede4ddf680ea348467db
tree47eceffbcb76ca82bc67bf0da8da226f9aa820b0
parent1bc2a55542c487ff97455da5f39597bc25bbfa49
Switch the package id types to use FastString (rather than String)

The conversions should now be correct w.r.t Unicode.

Also move a couple instances to avoid orphan instances.

Strictly speaking there's no need for these types to use FastString as
they do not need the unique feature. They could just use some other
compact string type, but ghc's internal utils don't have much support
for such a type, so we just use FastString.
compiler/basicTypes/Module.lhs
compiler/main/PackageConfig.hs
compiler/main/Packages.lhs