[commit: ghc] master: Switch the package id types to use FastString (rather than String) (c72efd7)

git at git.haskell.org git at git.haskell.org
Fri Aug 29 14:04:13 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/c72efd7cee77d5f934bbede4ddf680ea348467db/ghc

>---------------------------------------------------------------

commit c72efd7cee77d5f934bbede4ddf680ea348467db
Author: Duncan Coutts <duncan at well-typed.com>
Date:   Sun Aug 24 21:59:03 2014 +0100

    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.


>---------------------------------------------------------------

c72efd7cee77d5f934bbede4ddf680ea348467db
 compiler/basicTypes/Module.lhs |  9 +++++++++
 compiler/main/PackageConfig.hs | 44 +++++++++++++++++++-----------------------
 compiler/main/Packages.lhs     | 28 +++++++++++++--------------
 3 files changed, 43 insertions(+), 38 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc c72efd7cee77d5f934bbede4ddf680ea348467db


More information about the ghc-commits mailing list