Skip to content

Commit

Permalink
Fix code import
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Mar 27, 2016
1 parent 0306121 commit 0d34acd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cookbook/Handling-Persistence-Exception.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ persistent-try-bugs: SQLite3 returned ErrorConstraint while attempting to perfor

You can use the [exceptions](https://hackage.haskell.org/package/exceptions) package to handle exceptions. Have the appropriate imports:

>>> import Control.Exception (SomeException)
>>> import Control.Monad.Catch
```
import Control.Exception (SomeException)
import Control.Monad.Catch
```

And the rest of the code is like this:

Expand Down

0 comments on commit 0d34acd

Please sign in to comment.