summaryrefslogtreecommitdiff
path: root/libraries/ghc-prim
diff options
context:
space:
mode:
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