[commit: ghc] master: Move IP, Symbol, Nat to ghc-prim (2f6a0ac)
git at git.haskell.org
git at git.haskell.org
Fri May 1 14:42:24 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/2f6a0ac7061c59ed68a6dd5a2243e3e690acbd5f/ghc
>---------------------------------------------------------------
commit 2f6a0ac7061c59ed68a6dd5a2243e3e690acbd5f
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Fri May 1 15:05:11 2015 +0100
Move IP, Symbol, Nat to ghc-prim
This motivation is to declare class IP much earlier (in ghc-prim),
so that implicit parameters (which depend on IP) is available
to library code, notably the 'error' function.
* Move class IP from base:GHC.IP
to ghc-prim:GHC.Classes
* Delete module GHC.IP from base
* Move types Symbol and Nat
from base:GHC.TypeLits
to ghc-prim:GHC.Types
There was a name clash in GHC.RTS.Flags, where I renamed
the local type Nat to RtsNat.
>---------------------------------------------------------------
2f6a0ac7061c59ed68a6dd5a2243e3e690acbd5f
compiler/prelude/PrelNames.hs | 5 ++---
compiler/prelude/TysWiredIn.hs | 4 ++--
libraries/base/GHC/IP.hs | 19 -------------------
libraries/base/GHC/RTS/Flags.hsc | 26 +++++++++++++-------------
libraries/base/GHC/TypeLits.hs | 10 ++--------
libraries/base/base.cabal | 1 -
libraries/ghc-prim/GHC/Classes.hs | 21 +++++++++++++++++++--
libraries/ghc-prim/GHC/Types.hs | 8 ++++++++
testsuite/tests/ghci/scripts/T9181.stdout | 4 ++--
9 files changed, 48 insertions(+), 50 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 2f6a0ac7061c59ed68a6dd5a2243e3e690acbd5f
More information about the ghc-commits
mailing list