annotated-exception icon indicating copy to clipboard operation
annotated-exception copied to clipboard

Machinery for throwing and catching exceptions with some annotation.

Results 9 annotated-exception issues
Sort by recently updated
recently updated
newest added

```haskell foo :: SomeException -> AnnotatedException SomeException foo se = case fromException se of Just ann -> ann Nothing -> error "impossible" ``` This should be a safe utility to...

This package doesn't include `handleJust` and [`catchJust`](https://hackage.haskell.org/package/safe-exceptions-0.1.7.4/docs/Control-Exception-Safe.html#v:catchJust) functions - Is there some reason they are difficult to implement here, or just not something gotten around to yet?

```haskell import UnliftIO.Exception (catch, throwIO) removeAnnotationsFromExceptions :: (MonadUnliftIO m) => m a -> m a removeAnnotationsFromExceptions action = action `catch` \(AnnotatedException _ exn) -> throwIO exn ``` Would be good...

I'm moving our codebase to use annotated-exceptions and we have the following: ``` expectError :: a -> Test.Expectation expectError = flip Hspec.shouldThrow Hspec.anyErrorCall . Exception.evaluate ``` I'm just starting to...

Will eventually fix #20 Before submitting your PR, check that you've: - [ ] Bumped the version number. - [ ] Documented new APIs with [Haddock markup](https://www.haskell.org/haddock/doc/html/index.html). - [ ]...

Right now, none of the functions in this codebase do anything with asynchronous exceptions. This means you don't get any annotations! This sucks, and we should fix it. However, we...

The design of this module for import/export is unfortunate. We define a term `new`, which is clearly meant to be imported qualified, but then we *also* have functions `catch` `throw`...

It's not entirely clear the best way to integrate `AnnotatedException` into a code base. As [Shea notices](https://twitter.com/shlevy/status/1501506518931357702), this stuff is all one-way. Once an exception has been `Annotated`, the regular...

Before submitting your PR, check that you've: - [ ] Bumped the version number. - [ ] Documented new APIs with [Haddock markup](https://www.haskell.org/haddock/doc/html/index.html). - [ ] Added [`@since` declarations](http://haskell-haddock.readthedocs.io/en/latest/markup.html#since) to...