summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2017-11-06 15:35:08 -0500
committerBen Gamari <ben@smart-cactus.org>2017-11-06 15:35:09 -0500
commit35642f434ae9dff0d1bb8b5a6f1e725cd051c726 (patch)
treebdf3273bf774a7e33f69d4485826371acf22cda5
parent2ded53681463fa03af7f73a9b745289fa4822afe (diff)
downloadhaskell-35642f434ae9dff0d1bb8b5a6f1e725cd051c726.tar.gz
Update ErrorCall documentation for the location argument
Reviewers: hvr, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D4163
-rw-r--r--libraries/base/GHC/Exception.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/GHC/Exception.hs b/libraries/base/GHC/Exception.hs
index 725b864974..d3a6745fa5 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)