projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Warn a bit less often about unlifted bindings.
[ghc-hetmet.git]
/
compiler
/
nativeGen
/
NCGMonad.hs
diff --git
a/compiler/nativeGen/NCGMonad.hs
b/compiler/nativeGen/NCGMonad.hs
index
409d0c4
..
8b9629b
100644
(file)
--- a/
compiler/nativeGen/NCGMonad.hs
+++ b/
compiler/nativeGen/NCGMonad.hs
@@
-90,8
+90,8
@@
mapAccumLNat f b (x:xs)
getUniqueNat :: NatM Unique
getUniqueNat = NatM $ \ (NatM_State us delta imports pic dflags) ->
getUniqueNat :: NatM Unique
getUniqueNat = NatM $ \ (NatM_State us delta imports pic dflags) ->
- case splitUniqSupply us of
- (us1,us2) -> (uniqFromSupply us1, (NatM_State us2 delta imports pic dflags))
+ case takeUniqFromSupply us of
+ (uniq, us') -> (uniq, (NatM_State us' delta imports pic dflags))
getDynFlagsNat :: NatM DynFlags
getDynFlagsNat :: NatM DynFlags