summaryrefslogtreecommitdiff
path: root/compiler/GHC
diff options
context:
space:
mode:
authorsheaf <sam.derbyshire@gmail.com>2023-03-30 01:15:01 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-03-30 14:35:57 -0400
commit3d38dcb6e4b6ceeeeac79570faa42c33bfd10dfc (patch)
treee44de1dd075cc806ef678ccc2666d6da8f6fecfa /compiler/GHC
parentd2d8251b32a3546bb4984c9bd027917883ab4969 (diff)
downloadhaskell-3d38dcb6e4b6ceeeeac79570faa42c33bfd10dfc.tar.gz
Proxies for head and tail: review suggestions
Diffstat (limited to 'compiler/GHC')
-rw-r--r--compiler/GHC/Prelude/Basic.hs11
1 files changed, 5 insertions, 6 deletions
diff --git a/compiler/GHC/Prelude/Basic.hs b/compiler/GHC/Prelude/Basic.hs
index ac620a90c4..b3a311fdb7 100644
--- a/compiler/GHC/Prelude/Basic.hs
+++ b/compiler/GHC/Prelude/Basic.hs
@@ -110,12 +110,11 @@ shiftR = Bits.unsafeShiftR
#endif
{- Note [Proxies for head and tail]
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-Prelude.head and Prelude.tail has recently acquired {-# WARNING in "x-partial" #-},
-but GHC codebase uses them fairly extensively and insists on building warning-free.
-Thus instead of adding {-# OPTIONS_GHC -Wno-x-partial #-} to every module which
-employs them, we define a warning-less proxies and export them from GHC.Prelude.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Prelude.head and Prelude.tail have recently acquired {-# WARNING in "x-partial" #-},
+but the GHC codebase uses them fairly extensively and insists on building warning-free.
+Thus, instead of adding {-# OPTIONS_GHC -Wno-x-partial #-} to every module which
+employs them, we define warning-less proxies and export them from GHC.Prelude.
-}
-- See Note [Proxies for head and tail]