Skip to content

Commit

Permalink
Fix ambiguous catch for GHC 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Feb 14, 2014
1 parent 820281a commit 166da07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Database/SQLite/Simple.hs
Expand Up @@ -343,7 +343,7 @@ convertRow rowRes ncols = do
| otherwise -> errorColumnMismatch (ColumnOutOfBounds col)
Errors [] -> throwIO $ ConversionFailed "" "" "unknown error"
Errors [x] ->
throw x `catch` (\e -> errorColumnMismatch (e :: ColumnOutOfBounds))
throw x `Control.Exception.catch` (\e -> errorColumnMismatch (e :: ColumnOutOfBounds))
Errors xs -> throwIO $ ManyErrors xs
where
errorColumnMismatch :: ColumnOutOfBounds -> IO r
Expand Down

0 comments on commit 166da07

Please sign in to comment.