From: ross Date: Wed, 1 Dec 2004 17:45:28 +0000 (+0000) Subject: [project @ 2004-12-01 17:45:28 by ross] X-Git-Tag: nhc98-1-18-release~170 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e6593a2d027bf4beb737b6760a1a6e024bc74982;p=ghc-base.git [project @ 2004-12-01 17:45:28 by ross] markup --- diff --git a/Control/Exception.hs b/Control/Exception.hs index aed144b..dd6b6fd 100644 --- a/Control/Exception.hs +++ b/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/Data/Typeable.hs b/Data/Typeable.hs index 8bd01f7..4c63399 100644 --- a/Data/Typeable.hs +++ b/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. --