[commit: ghc] ghc-7.10: RTS.Flags: Rename Nat to RtsNat (211eac2)
git at git.haskell.org
git at git.haskell.org
Thu Oct 22 15:06:52 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.10
Link : http://ghc.haskell.org/trac/ghc/changeset/211eac24e15471017b20a2446fbb92525f26c83d/ghc
>---------------------------------------------------------------
commit 211eac24e15471017b20a2446fbb92525f26c83d
Author: Ben Gamari <ben at smart-cactus.org>
Date: Thu Sep 24 01:25:06 2015 +0200
RTS.Flags: Rename Nat to RtsNat
>---------------------------------------------------------------
211eac24e15471017b20a2446fbb92525f26c83d
libraries/base/GHC/RTS/Flags.hsc | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/libraries/base/GHC/RTS/Flags.hsc b/libraries/base/GHC/RTS/Flags.hsc
index b8b2973..d2afcab 100644
--- a/libraries/base/GHC/RTS/Flags.hsc
+++ b/libraries/base/GHC/RTS/Flags.hsc
@@ -57,7 +57,7 @@ import GHC.Word
type RtsTime = Word64
-- | @'nat'@ defined in @rts/Types.h@
-type Nat = #{type unsigned int}
+type RtsNat = #{type unsigned int}
data GiveGCStats
= NoGCStats
@@ -84,19 +84,19 @@ instance Enum GiveGCStats where
data GCFlags = GCFlags
{ statsFile :: Maybe FilePath
, giveStats :: GiveGCStats
- , maxStkSize :: Nat
- , initialStkSize :: Nat
- , stkChunkSize :: Nat
- , stkChunkBufferSize :: Nat
- , maxHeapSize :: Nat
- , minAllocAreaSize :: Nat
- , minOldGenSize :: Nat
- , heapSizeSuggestion :: Nat
+ , maxStkSize :: RtsNat
+ , initialStkSize :: RtsNat
+ , stkChunkSize :: RtsNat
+ , stkChunkBufferSize :: RtsNat
+ , maxHeapSize :: RtsNat
+ , minAllocAreaSize :: RtsNat
+ , minOldGenSize :: RtsNat
+ , heapSizeSuggestion :: RtsNat
, heapSizeSuggestionAuto :: Bool
, oldGenFactor :: Double
, pcFreeHeap :: Double
- , generations :: Nat
- , steps :: Nat
+ , generations :: RtsNat
+ , steps :: RtsNat
, squeezeUpdFrames :: Bool
, compact :: Bool -- ^ True <=> "compact all the time"
, compactThreshold :: Double
@@ -311,7 +311,7 @@ getGCFlags = do
ptr <- getGcFlagsPtr
GCFlags <$> (peekFilePath =<< #{peek GC_FLAGS, statsFile} ptr)
<*> (toEnum . fromIntegral <$>
- (#{peek GC_FLAGS, giveStats} ptr :: IO Nat))
+ (#{peek GC_FLAGS, giveStats} ptr :: IO RtsNat))
<*> #{peek GC_FLAGS, maxStkSize} ptr
<*> #{peek GC_FLAGS, initialStkSize} ptr
<*> #{peek GC_FLAGS, stkChunkSize} ptr
@@ -373,7 +373,7 @@ getCCFlags :: IO CCFlags
getCCFlags = do
ptr <- getCcFlagsPtr
CCFlags <$> (toEnum . fromIntegral
- <$> (#{peek COST_CENTRE_FLAGS, doCostCentres} ptr :: IO Nat))
+ <$> (#{peek COST_CENTRE_FLAGS, doCostCentres} ptr :: IO RtsNat))
<*> #{peek COST_CENTRE_FLAGS, profilerTicks} ptr
<*> #{peek COST_CENTRE_FLAGS, msecsPerTick} ptr
More information about the ghc-commits
mailing list