X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FbasicTypes%2FUniqSupply.lhs;fp=ghc%2Fcompiler%2FbasicTypes%2FUniqSupply.lhs;h=73b2b6336d37f55df7097f5716cce8e5e5870ae9;hb=42b180c345a151707d724f931d2b6c7f59a9ee6b;hp=2b29335168a69b9d9fdc7ac17739f84050d80c38;hpb=0aa891b0420c17936c6b9961e6b7d33e3a9b7bb3;p=ghc-hetmet.git diff --git a/ghc/compiler/basicTypes/UniqSupply.lhs b/ghc/compiler/basicTypes/UniqSupply.lhs index 2b29335..73b2b63 100644 --- a/ghc/compiler/basicTypes/UniqSupply.lhs +++ b/ghc/compiler/basicTypes/UniqSupply.lhs @@ -79,18 +79,12 @@ mkSplitUniqSupply (C# c#) return (MkSplitUniqSupply uniq s1 s2) ) - mk_unique = -#if __GLASGOW_HASKELL__ < 603 - _ccall_ -#endif - genSymZh >>= \ (W# u#) -> + mk_unique = genSymZh >>= \ (W# u#) -> return (I# (w2i (mask# `or#` u#))) in mk_supply# -#if __GLASGOW_HASKELL__ >= 603 -foreign import ccall unsafe "genSymZh" genSymZh :: IO Word -#endif +foreign import ccall "genSymZh" unsafe genSymZh :: IO Word splitUniqSupply (MkSplitUniqSupply _ s1 s2) = (s1, s2) \end{code}