[commit: ghc] master: Implement FastBytes, and use it for MachStr (7ae1bec)

Ian Lynagh igloo at earth.li
Fri Jul 20 15:46:43 CEST 2012


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/7ae1bec53801069661e249e47ebd6998d6450093

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

commit 7ae1bec53801069661e249e47ebd6998d6450093
Author: Ian Lynagh <igloo at earth.li>
Date:   Sat Jul 14 20:48:42 2012 +0100

    Implement FastBytes, and use it for MachStr
    
    This is a first step on the way to refactoring the FastString type.
    
    FastBytes currently has no unique, mainly because there isn't currently
    a nice way to produce them in Binary.
    
    Also, we don't currently do the "Dictionary" thing with FastBytes in
    Binary. I'm not sure whether this is important.
    
    We can change both decisions later, but in the meantime this gets the
    refactoring underway.

 compiler/basicTypes/Literal.lhs      |    9 ++--
 compiler/codeGen/CgUtils.hs          |    3 +-
 compiler/codeGen/StgCmmUtils.hs      |    2 +-
 compiler/coreSyn/CoreUnfold.lhs      |    2 +-
 compiler/coreSyn/ExternalCore.lhs    |    4 +-
 compiler/coreSyn/MkCore.lhs          |    4 +-
 compiler/coreSyn/MkExternalCore.lhs  |    2 +-
 compiler/coreSyn/PprExternalCore.lhs |    4 +-
 compiler/deSugar/DsBinds.lhs         |    2 +-
 compiler/deSugar/MatchLit.lhs        |   14 ++++--
 compiler/ghci/ByteCodeGen.lhs        |    2 +-
 compiler/parser/ParserCore.y         |    2 +-
 compiler/prelude/PrelRules.lhs       |    2 +-
 compiler/utils/Binary.hs             |   23 ++++++++---
 compiler/utils/FastString.lhs        |   75 ++++++++++++++++++++++++++++++++--
 compiler/utils/Outputable.lhs        |   12 +++++-
 16 files changed, 129 insertions(+), 33 deletions(-)


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

    git show 7ae1bec53801069661e249e47ebd6998d6450093



More information about the Cvs-ghc mailing list