summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorSebastian Graf <sgraf1337@gmail.com>2023-04-06 17:24:24 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-04-07 18:27:45 -0400
commitb384523bab0650ba1e6b09f3c7aa64a92a90fe3b (patch)
treeb26ab189022911b948b450101450e7a531da9d89 /libraries
parent5193c2b00194a4f536f0c31fe48ef4648b55a416 (diff)
downloadhaskell-b384523bab0650ba1e6b09f3c7aa64a92a90fe3b.tar.gz
Adjust wording wrt representation polymorphism of ($)
Diffstat (limited to 'libraries')
-rw-r--r--libraries/base/GHC/Base.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/GHC/Base.hs b/libraries/base/GHC/Base.hs
index 7302bc5642..c4032395ee 100644
--- a/libraries/base/GHC/Base.hs
+++ b/libraries/base/GHC/Base.hs
@@ -1662,7 +1662,7 @@ applyFive = map ($ 5) [(+1), (2^)]
=== Technical Remark (Representation Polymorphism)
-@($)@ is fully representation-polymorphic. This allows it to also be used with low-level primitive values, which have a different type to regular Haskell values.
+@($)@ is fully representation-polymorphic. This allows it to also be used with arguments of unlifted and even unboxed kinds, such as unboxed integers:
@
fastMod :: Int -> Int -> Int