[commit: ghc] master: Mention ByteString and Text to docs for OverloadedStrings (bd6a73b)
Simon Marlow
marlowsd at gmail.com
Fri Jul 1 10:01:56 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/bd6a73b06aad1cf99ca8eca4dbd15b153ee147d4
>---------------------------------------------------------------
commit bd6a73b06aad1cf99ca8eca4dbd15b153ee147d4
Author: Simon Marlow <marlowsd at gmail.com>
Date: Tue Jun 14 09:33:17 2011 +0100
Mention ByteString and Text to docs for OverloadedStrings
>---------------------------------------------------------------
docs/users_guide/glasgow_exts.xml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml
index 09a9062..16cc760 100644
--- a/docs/users_guide/glasgow_exts.xml
+++ b/docs/users_guide/glasgow_exts.xml
@@ -4343,7 +4343,8 @@ literals enabled (with <literal>-XOverloadedStrings</literal>)
a string literal has type <literal>(IsString a) => a</literal>.
</para>
<para>
-This means that the usual string syntax can be used, e.g., for packed strings
+ This means that the usual string syntax can be used, e.g.,
+ for <literal>ByteString</literal>, <literal>Text</literal>,
and other variations of string like types. String literals behave very much
like integer literals, i.e., they can be used in both expressions and patterns.
If used in a pattern the literal with be replaced by an equality test, in the same
More information about the Cvs-ghc
mailing list