Doc fixes in Control.Exception

Hello, I noticed some minor errors in the documentation of Control.Exception. The attached patch fixes them. It would be nice if somebody could apply the patch. regards, Bas

did this ever get applied? You might want to try the haskell libraries
mailing list (cc'd).
thomas.
2010/3/1 Bas van Dijk
Hello,
I noticed some minor errors in the documentation of Control.Exception. The attached patch fixes them.
It would be nice if somebody could apply the patch.
regards,
Bas
_______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries

On Mon, Mar 01, 2010 at 11:12:15PM +0100, Bas van Dijk wrote:
I noticed some minor errors in the documentation of Control.Exception. The attached patch fixes them.
I'm not sure about the bit of the patch below. David, Control/Exception.hs contains: -- ** Catching all exceptions -- $catchall [...] {- $catchall It is possible to catch all exceptions, by using the type 'SomeException': but the reference to $catchall in Control/Exception/Base.hs isn't working; in Control-Exception.html $catchall isn't expanded. Is that a bug, or expected behaviour? hunk ./Control/Exception/Base.hs 342 -- -- Note that we have to give a type signature to @e@, or the program -- will not typecheck as the type is ambiguous. While it is possible --- to catch exceptions of any type, see $catchall for an explanation --- of the problems with doing so. +-- to catch exceptions of any type, see the previous section \"Catching all +-- exceptions \" for an explanation of the problems with doing so. -- -- For catching exceptions in pure (non-'IO') expressions, see the -- function 'evaluate'. Thanks Ian

2010/3/7 Ian Lynagh
On Mon, Mar 01, 2010 at 11:12:15PM +0100, Bas van Dijk wrote:
I noticed some minor errors in the documentation of Control.Exception. The attached patch fixes them.
I'm not sure about the bit of the patch below. David, Control/Exception.hs contains:
-- ** Catching all exceptions
-- $catchall
[...]
{- $catchall
It is possible to catch all exceptions, by using the type 'SomeException':
but the reference to $catchall in Control/Exception/Base.hs isn't working; in Control-Exception.html $catchall isn't expanded. Is that a bug, or expected behaviour?
Not exactly sure what you mean, here. The $catchall reference in Control/Exception/Base.hs should not work (if by "work" you mean create some kind of reference to the documentation in Control/Exception.hs). In Control.Exception everything seems fine ($catchall is expanded). Or are you seeing something else? David

On Mon, Mar 08, 2010 at 12:22:35AM +0100, David Waern wrote:
2010/3/7 Ian Lynagh
: On Mon, Mar 01, 2010 at 11:12:15PM +0100, Bas van Dijk wrote:
I noticed some minor errors in the documentation of Control.Exception. The attached patch fixes them.
I'm not sure about the bit of the patch below. David, Control/Exception.hs contains:
-- ** Catching all exceptions
-- $catchall
[...]
{- $catchall
It is possible to catch all exceptions, by using the type 'SomeException':
but the reference to $catchall in Control/Exception/Base.hs isn't working; in Control-Exception.html $catchall isn't expanded. Is that a bug, or expected behaviour?
Not exactly sure what you mean, here. The $catchall reference in Control/Exception/Base.hs should not work (if by "work" you mean create some kind of reference to the documentation in Control/Exception.hs).
In Control.Exception everything seems fine ($catchall is expanded). Or are you seeing something else?
No, sounds like it's working as expected. Thanks! Thanks Ian

On Mon, Mar 8, 2010 at 5:47 PM, Ian Lynagh
but the reference to $catchall in Control/Exception/Base.hs isn't working; in Control-Exception.html $catchall isn't expanded. Is that a bug, or expected behaviour?
Not exactly sure what you mean, here. The $catchall reference in Control/Exception/Base.hs should not work (if by "work" you mean create some kind of reference to the documentation in Control/Exception.hs).
In Control.Exception everything seems fine ($catchall is expanded). Or are you seeing something else?
No, sounds like it's working as expected. Thanks!
There's a reference to $catchall in the documentation of 'catch' which doesn't link to the proper place: http://haskell.org/ghc/docs/latest/html/libraries/base-4.2.0.0/Control-Excep... Bas

I just noticed that my patch also changed the following: --- |The thread is awiting to retry an STM transaction, but there are no +-- |The thread is awaiting to retry an STM transaction, but there are no -- other references to any @TVar@s involved, so it can't ever continue. data BlockedIndefinitelyOnSTM = BlockedIndefinitelyOnSTM deriving Typeable hunk ./GHC/IO/Exception.hs 94 However this should obviously not be 'awaiting' but 'waiting'. Should I create a new patch or can you guys fix that? Bas

On Mon, Mar 8, 2010 at 8:31 PM, David Waern
2010/3/8 Bas van Dijk
: There's a reference to $catchall in the documentation of 'catch' which doesn't link to the proper place:
That kind of reference is not supported by Haddock, unless I've missed something.
That's why I removed it in the patch and replaced it with a textual reference. regards, Bas

I also noticed some dead links to 'BlockedOnDeadMVar' and 'BlockedIndefinitely' in the documentation of 'forkIO': http://haskell.org/ghc/docs/latest/html/libraries/base-4.2.0.0/Control-Concu... I see 'BlockedOnDeadMVar' got renamed to 'BlockedIndefinitelyOnMVar' and 'BlockedIndefinitely' got renamed to 'BlockedIndefinitelyOnSTM'. The attached patch fixes it. regards, Bas
participants (4)
-
Bas van Dijk
-
David Waern
-
Ian Lynagh
-
Thomas Hartman