diff options
author | Tilman Blumhagen <tilman.blumhagen@googlemail.com> | 2019-10-15 20:43:48 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-10-22 02:39:04 -0400 |
commit | 2d2cc76ffb781d01c800608cd8be05cca67ac4c0 (patch) | |
tree | f75ea6c5d09547d8306a4ab4135df91108ec6a26 /libraries/ghc-prim | |
parent | fd8b666acfee5524a2d7c8b845a3782f6a89bec7 (diff) | |
download | haskell-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.hs | 4 |
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 |