Skip to content

Commit

Permalink
Exception.throw -> Exception.throwIO in firstSuccessful
Browse files Browse the repository at this point in the history
  • Loading branch information
UnkindPartition committed Sep 18, 2012
1 parent 6a13dd0 commit b11d43c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Network.hs
Expand Up @@ -464,5 +464,5 @@ firstSuccessful :: [IO a] -> IO a
firstSuccessful [] = error "firstSuccessful: empty list"
firstSuccessful (p:ps) = catchIO p $ \e ->
case ps of
[] -> Exception.throw e
[] -> Exception.throwIO e
_ -> firstSuccessful ps

0 comments on commit b11d43c

Please sign in to comment.