X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FbasicTypes%2FUniqSupply.lhs;fp=ghc%2Fcompiler%2FbasicTypes%2FUniqSupply.lhs;h=2b29335168a69b9d9fdc7ac17739f84050d80c38;hb=53ef684d022eb4cdaf1fceb81d6beb8bc226b3e7;hp=86cf320bf8516007a6c8130a8524b03270e92f4e;hpb=ce08a14f3d1f2bc05d76cfcfb9215bd9d5fc7e68;p=ghc-hetmet.git diff --git a/ghc/compiler/basicTypes/UniqSupply.lhs b/ghc/compiler/basicTypes/UniqSupply.lhs index 86cf320..2b29335 100644 --- a/ghc/compiler/basicTypes/UniqSupply.lhs +++ b/ghc/compiler/basicTypes/UniqSupply.lhs @@ -79,11 +79,19 @@ mkSplitUniqSupply (C# c#) return (MkSplitUniqSupply uniq s1 s2) ) - mk_unique = _ccall_ genSymZh >>= \ (W# u#) -> + mk_unique = +#if __GLASGOW_HASKELL__ < 603 + _ccall_ +#endif + 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 + splitUniqSupply (MkSplitUniqSupply _ s1 s2) = (s1, s2) \end{code}