summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Prott <kai.prott@hotmail.de>2021-11-24 13:05:05 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-11-26 16:01:47 -0500
commit7e18b3041321b19876e74b88ffed3b44e4665c23 (patch)
tree3490b3a9b8d07a18f9165859fdccddb9e10a62e9
parent0a6776a3ce6a54d886439fc20991f7a8ac706eb2 (diff)
downloadhaskell-7e18b3041321b19876e74b88ffed3b44e4665c23.tar.gz
Reflect type change in the haddock comment
-rw-r--r--compiler/GHC/Runtime/Loader.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Runtime/Loader.hs b/compiler/GHC/Runtime/Loader.hs
index 24fb77b9bd..654b270fb1 100644
--- a/compiler/GHC/Runtime/Loader.hs
+++ b/compiler/GHC/Runtime/Loader.hs
@@ -183,7 +183,7 @@ forceLoadTyCon hsc_env con_name = do
-- | Loads the value corresponding to a 'Name' if that value has the given 'Type'. This only provides limited safety
-- in that it is up to the user to ensure that that type corresponds to the type you try to use the return value at!
--
--- If the value found was not of the correct type, returns @Nothing@. Any other condition results in an exception:
+-- If the value found was not of the correct type, returns @Left <actual_type>@. Any other condition results in an exception:
--
-- * If we could not load the names module
-- * If the thing being loaded is not a value