[commit: ghc] master: Refactor to avoid need for `Unicode.hs-boot` (1942fd6)

git at git.haskell.org git at git.haskell.org
Sat Oct 11 10:36:14 UTC 2014


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

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

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

commit 1942fd6a8414d5664f3c9f6d1e6e39ca5265ef21
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sat Oct 11 12:35:28 2014 +0200

    Refactor to avoid need for `Unicode.hs-boot`
    
    This avoids the import-cycle caused by the import of `Foreign.C.Types`
    by using `Int` instead of `CInt` for the Unicode classification
    functions. This refactoring also allows to remove a couple of
    `fromIntegral`s.
    
    Reviewed By: rwbarton, ekmett
    
    Differential Revision: https://phabricator.haskell.org/D328


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

1942fd6a8414d5664f3c9f6d1e6e39ca5265ef21
 libraries/base/GHC/Read.lhs                    |  2 +-
 libraries/base/GHC/Unicode.hs                  | 48 ++++++++++++--------------
 libraries/base/GHC/Unicode.hs-boot             | 20 -----------
 libraries/base/Text/ParserCombinators/ReadP.hs |  2 +-
 libraries/base/Text/Read/Lex.hs                |  2 +-
 libraries/base/cbits/WCsubst.c                 | 10 +++---
 libraries/base/cbits/ubconfc                   | 10 +++---
 libraries/base/include/WCsubst.h               | 25 +++++++-------
 8 files changed, 49 insertions(+), 70 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 1942fd6a8414d5664f3c9f6d1e6e39ca5265ef21


More information about the ghc-commits mailing list