diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2023-02-02 16:01:56 +0100 |
---|---|---|
committer | Sylvain Henry <sylvain@haskus.fr> | 2023-02-06 09:36:57 +0100 |
commit | 9325748067966f6e08adbb182f2c04d9e86f7ad8 (patch) | |
tree | 4f46dc7807e8e3800f186f864e25519eae31a3a9 /libraries/base/Control/Concurrent.hs | |
parent | 3c0f0c6d99486502c72e6514a40e7264baaa6afc (diff) | |
download | haskell-wip/T22740.tar.gz |
JS: replace "js" architecture with "javascript"wip/T22740
Despite Cabal supporting any architecture name, `cabal --check` only
supports a few built-in ones. Sadly `cabal --check` is used by Hackage
hence using any non built-in name in a package (e.g. `arch(js)`) is
rejected and the package is prevented from being uploaded on Hackage.
Luckily built-in support for the `javascript` architecture was added for
GHCJS a while ago. In order to allow newer `base` to be uploaded on
Hackage we make the switch from `js` to `javascript` architecture.
Fixes #22740.
Co-authored-by: Ben Gamari <ben@smart-cactus.org>
Diffstat (limited to 'libraries/base/Control/Concurrent.hs')
-rw-r--r-- | libraries/base/Control/Concurrent.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/Control/Concurrent.hs b/libraries/base/Control/Concurrent.hs index 87ddc9584a..50166d27f7 100644 --- a/libraries/base/Control/Concurrent.hs +++ b/libraries/base/Control/Concurrent.hs @@ -106,7 +106,7 @@ module Control.Concurrent ( ) where -- JavaScript platform doesn't support bound threads -#if !defined(js_HOST_ARCH) +#if !defined(javascript_HOST_ARCH) #define SUPPORT_BOUND_THREADS #endif |