From 9de55417c7e397c7293df4bd6c2f60307acb3611 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 25 May 2010 15:57:28 +0000 Subject: [PATCH] Fix doc bugs (#4071) --- docs/users_guide/ghci.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml index 0a50bcc..edad7fd 100644 --- a/docs/users_guide/ghci.xml +++ b/docs/users_guide/ghci.xml @@ -814,12 +814,12 @@ it <- e ghci> reverse [] What should GHCi do? Strictly speaking, the program is ambiguous. show (reverse []) - (which is what GHCi computes here) has type Show a => a and how that displays depends + (which is what GHCi computes here) has type Show a => String and how that displays depends on the type a. For example: - ghci> (reverse []) :: String + ghci> reverse ([] :: String) "" - ghci> (reverse []) :: [Int] + ghci> reverse ([] :: [Int]) [] However, it is tiresome for the user to have to specify the type, so GHCi extends Haskell's type-defaulting -- 1.7.10.4