[commit: ghc] master: Update ErrorCall documentation for the location argument (35642f4)
git at git.haskell.org
git at git.haskell.org
Mon Nov 6 21:39:53 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/35642f434ae9dff0d1bb8b5a6f1e725cd051c726/ghc
>---------------------------------------------------------------
commit 35642f434ae9dff0d1bb8b5a6f1e725cd051c726
Author: Ömer Sinan Ağacan <omeragacan at gmail.com>
Date: Mon Nov 6 15:35:08 2017 -0500
Update ErrorCall documentation for the location argument
Reviewers: hvr, bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D4163
>---------------------------------------------------------------
35642f434ae9dff0d1bb8b5a6f1e725cd051c726
libraries/base/GHC/Exception.hs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libraries/base/GHC/Exception.hs b/libraries/base/GHC/Exception.hs
index 725b864..d3a6745 100644
--- a/libraries/base/GHC/Exception.hs
+++ b/libraries/base/GHC/Exception.hs
@@ -167,8 +167,8 @@ instance Exception SomeException where
throw :: Exception e => e -> a
throw e = raise# (toException e)
--- |This is thrown when the user calls 'error'. The @String@ is the
--- argument given to 'error'.
+-- | This is thrown when the user calls 'error'. The first @String@ is the
+-- argument given to 'error', second @String@ is the location.
data ErrorCall = ErrorCallWithLocation String String
deriving (Eq, Ord)
More information about the ghc-commits
mailing list