summaryrefslogtreecommitdiff
path: root/libraries/ghc-prim
diff options
context:
space:
mode:
authorTilman Blumhagen <tilman.blumhagen@googlemail.com>2019-10-15 20:43:48 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-22 02:39:04 -0400
commit2d2cc76ffb781d01c800608cd8be05cca67ac4c0 (patch)
treef75ea6c5d09547d8306a4ab4135df91108ec6a26 /libraries/ghc-prim
parentfd8b666acfee5524a2d7c8b845a3782f6a89bec7 (diff)
downloadhaskell-2d2cc76ffb781d01c800608cd8be05cca67ac4c0.tar.gz
Documentation for (&&) and (&&) states that they are lazy in their second argument (fixes #17354)
Diffstat (limited to 'libraries/ghc-prim')
-rw-r--r--libraries/ghc-prim/GHC/Classes.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/ghc-prim/GHC/Classes.hs b/libraries/ghc-prim/GHC/Classes.hs
index 6e12ce9a37..4ccfe914bd 100644
--- a/libraries/ghc-prim/GHC/Classes.hs
+++ b/libraries/ghc-prim/GHC/Classes.hs
@@ -524,12 +524,12 @@ compareWord# x# y#
-- Boolean functions
--- | Boolean \"and\"
+-- | Boolean \"and\", lazy in the second argument
(&&) :: Bool -> Bool -> Bool
True && x = x
False && _ = False
--- | Boolean \"or\"
+-- | Boolean \"or\", lazy in the second argument
(||) :: Bool -> Bool -> Bool
True || _ = True
False || x = x