summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brock <jamesbrock@gmail.com>2019-08-30 09:09:46 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-03 12:17:24 -0400
commit3c7b172b33db417ccd43ed794362725c1165bc04 (patch)
tree106c7c7cb473fca65e002a8b468d3ece23ca3df2
parent8a254d6bf46e93285894593da38ef8e5bb8bf206 (diff)
downloadhaskell-3c7b172b33db417ccd43ed794362725c1165bc04.tar.gz
docs String, hyperlink to Data.List
Add a reference to the documentation for Data.List in the description for String. On the generated Haddock for Data.String, http://hackage.haskell.org/package/base-4.12.0.0/docs/Data-String.html there is curently no hyperlink to Data.List, which is where a reader will find most of the useful functions which can operate on Strings. I imagine this has confused beginners who came to this page looking for String operations.
-rw-r--r--libraries/base/GHC/Base.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/base/GHC/Base.hs b/libraries/base/GHC/Base.hs
index c365c05182..d63f5d1a86 100644
--- a/libraries/base/GHC/Base.hs
+++ b/libraries/base/GHC/Base.hs
@@ -1311,6 +1311,7 @@ otherwise = True
-- | A 'String' is a list of characters. String constants in Haskell are values
-- of type 'String'.
--
+-- See "Data.List" for operations on lists.
type String = [Char]
unsafeChr :: Int -> Char