diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-07-08 21:09:33 +0200 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2015-07-10 19:41:07 +0200 |
commit | 9b1ebba2af060fef90dcd722313d3f8041ec5a97 (patch) | |
tree | cea0c5bf5971230ac13ebc0cb5777f03bb9de118 /libraries/base/System | |
parent | 2d06a9f19d5b3ab8c3ff0b24f508c15bedae99d2 (diff) | |
download | haskell-9b1ebba2af060fef90dcd722313d3f8041ec5a97.tar.gz |
Delete the WayPar way
Also remove 't' and 's' from ALL_WAYS; they don't exist.
Differential Revision: https://phabricator.haskell.org/D1055
Diffstat (limited to 'libraries/base/System')
-rw-r--r-- | libraries/base/System/Mem/StableName.hs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libraries/base/System/Mem/StableName.hs b/libraries/base/System/Mem/StableName.hs index 6967017780..cb4b71b11b 100644 --- a/libraries/base/System/Mem/StableName.hs +++ b/libraries/base/System/Mem/StableName.hs @@ -1,10 +1,7 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE MagicHash #-} -#if !defined(__PARALLEL_HASKELL__) {-# LANGUAGE UnboxedTuples #-} -#endif ----------------------------------------------------------------------------- -- | @@ -78,36 +75,21 @@ data StableName a = StableName (StableName# a) -- | Makes a 'StableName' for an arbitrary object. The object passed as -- the first argument is not evaluated by 'makeStableName'. makeStableName :: a -> IO (StableName a) -#if defined(__PARALLEL_HASKELL__) -makeStableName a = - error "makeStableName not implemented in parallel Haskell" -#else makeStableName a = IO $ \ s -> case makeStableName# a s of (# s', sn #) -> (# s', StableName sn #) -#endif -- | Convert a 'StableName' to an 'Int'. The 'Int' returned is not -- necessarily unique; several 'StableName's may map to the same 'Int' -- (in practice however, the chances of this are small, so the result -- of 'hashStableName' makes a good hash key). hashStableName :: StableName a -> Int -#if defined(__PARALLEL_HASKELL__) -hashStableName (StableName sn) = - error "hashStableName not implemented in parallel Haskell" -#else hashStableName (StableName sn) = I# (stableNameToInt# sn) -#endif instance Eq (StableName a) where -#if defined(__PARALLEL_HASKELL__) - (StableName sn1) == (StableName sn2) = - error "eqStableName not implemented in parallel Haskell" -#else (StableName sn1) == (StableName sn2) = case eqStableName# sn1 sn2 of 0# -> False _ -> True -#endif -- | Equality on 'StableName' that does not require that the types of -- the arguments match. |