[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 2 commits: Fix typo in haddock
Marge Bot
gitlab at gitlab.haskell.org
Tue Jul 28 13:54:05 UTC 2020
Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC
Commits:
e848c5f7 by Oleg Grenrus at 2020-07-28T09:54:01-04:00
Fix typo in haddock
Spotted by `vilpan` on `#haskell`
- - - - -
0c133451 by Sergei Trofimovich at 2020-07-28T09:54:03-04:00
ghc/mk: don't build gmp packages for BIGNUM_BACKEND=native
Before this change make-based `BIGNUM_BACKEND=native` build was failing as:
```
x86_64-pc-linux-gnu-gcc: error: libraries/ghc-bignum/gmp/objs/*.o: No such file or directory
```
This happens because ghc.mk was pulling in gmp-dependent
ghc-bignum library unconditionally. The change avoid building
ghc-bignum.
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/18437
Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>
- - - - -
2 changed files:
- ghc.mk
- libraries/base/GHC/IO.hs
Changes:
=====================================
ghc.mk
=====================================
@@ -656,7 +656,9 @@ BUILD_DIRS += $(patsubst %, libraries/%, $(PACKAGES_STAGE1))
BUILD_DIRS += $(patsubst %, libraries/%, $(filter-out $(PACKAGES_STAGE1),$(PACKAGES_STAGE0)))
endif
+ifeq "$(BIGNUM_BACKEND)" "gmp"
BUILD_DIRS += libraries/ghc-bignum/gmp
+endif
BUILD_DIRS += utils/haddock
BUILD_DIRS += utils/haddock/doc
BUILD_DIRS += compiler
=====================================
libraries/base/GHC/IO.hs
=====================================
@@ -173,7 +173,7 @@ catchException !io handler = catch io handler
-- @IO Int -> (ArithException -> IO Int) -> IO Int@ then the handler may
-- get run with @DivideByZero@ as an argument, or an @ErrorCall \"urk\"@
-- exception may be propagated further up. If you call it again, you
--- might get a the opposite behaviour. This is ok, because 'catch' is an
+-- might get the opposite behaviour. This is ok, because 'catch' is an
-- 'IO' computation.
--
catch :: Exception e
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/37ba5283db32b5cae501728e2021d3f7a042a730...0c1334512fe7d51399c3d2668ca5d9d528206398
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/37ba5283db32b5cae501728e2021d3f7a042a730...0c1334512fe7d51399c3d2668ca5d9d528206398
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200728/00378ffb/attachment.html>
More information about the ghc-commits
mailing list