diff options
author | ross <unknown> | 2004-12-01 17:45:28 +0000 |
---|---|---|
committer | ross <unknown> | 2004-12-01 17:45:28 +0000 |
commit | 604bd114bcce12f96098be868049e5cb46e66cc1 (patch) | |
tree | 1ac0a08fd09cd3a09cecdf6ae27b36ff5773c980 /libraries/base | |
parent | 1665a2368a637b58858c17f7ec5f46dc34944ab3 (diff) | |
download | haskell-604bd114bcce12f96098be868049e5cb46e66cc1.tar.gz |
[project @ 2004-12-01 17:45:28 by ross]
markup
Diffstat (limited to 'libraries/base')
-rw-r--r-- | libraries/base/Control/Exception.hs | 8 | ||||
-rw-r--r-- | libraries/base/Data/Typeable.hs | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/libraries/base/Control/Exception.hs b/libraries/base/Control/Exception.hs index aed144b553..dd6b6fdf9e 100644 --- a/libraries/base/Control/Exception.hs +++ b/libraries/base/Control/Exception.hs @@ -169,13 +169,13 @@ INSTANCE_TYPEABLE0(AsyncException,asyncExceptionTc,"AsyncException") -- might be a 'ThreadKilled', for example). In this case it is usually better -- to use 'catchJust' and select the kinds of exceptions to catch. -- --- Also note that The "Prelude" also exports a --- function called 'catch' which has the same type as +-- Also note that the "Prelude" also exports a +-- function called 'Prelude.catch' which has the same type as -- 'Control.Exception.catch', the difference being that the -- "Prelude" version only catches the IO and user -- families of exceptions (as required by Haskell 98). We recommend -- either hiding the "Prelude" version of --- 'catch' when importing +-- 'Prelude.catch' when importing -- "Control.Exception", or importing -- "Control.Exception" qualified, to avoid name-clashes. @@ -235,7 +235,7 @@ mapException f v = unsafePerformIO (catch (evaluate v) -- 'try' and variations. -- | Similar to 'catch', but returns an 'Either' result which is --- @(Right a)@ if no exception was raised, or @(Left e)@ if an +-- @('Right' a)@ if no exception was raised, or @('Left' e)@ if an -- exception was raised and its value is @e@. -- -- > try a = catch (Right \`liftM\` a) (return . Left) diff --git a/libraries/base/Data/Typeable.hs b/libraries/base/Data/Typeable.hs index 8bd01f78e1..4c633991d3 100644 --- a/libraries/base/Data/Typeable.hs +++ b/libraries/base/Data/Typeable.hs @@ -9,12 +9,12 @@ -- Stability : experimental -- Portability : portable -- --- The Typeable class reifies types to some extent by associating type +-- The 'Typeable' class reifies types to some extent by associating type -- representations to types. These type representations can be compared, -- and one can in turn define a type-safe cast operation. To this end, -- an unsafe cast is guarded by a test for type (representation) --- equivalence. The module Data.Dynamic uses Typeable for an --- implementation of dynamics. The module Data.Generics uses Typeable +-- equivalence. The module "Data.Dynamic" uses Typeable for an +-- implementation of dynamics. The module "Data.Generics" uses Typeable -- and type-safe cast (but not dynamics) to support the \"Scrap your -- boilerplate\" style of generic programming. -- |