Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Exceptions/Haskell/exceptions-1.hs
Normal file
2
Task/Exceptions/Haskell/exceptions-1.hs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
do {- ... -}
|
||||
throwIO SomeException
|
||||
2
Task/Exceptions/Haskell/exceptions-2.hs
Normal file
2
Task/Exceptions/Haskell/exceptions-2.hs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
if condition then 3
|
||||
else throw SomeException
|
||||
2
Task/Exceptions/Haskell/exceptions-3.hs
Normal file
2
Task/Exceptions/Haskell/exceptions-3.hs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
if condition then 3
|
||||
else throwDyn myException
|
||||
4
Task/Exceptions/Haskell/exceptions-4.hs
Normal file
4
Task/Exceptions/Haskell/exceptions-4.hs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
do
|
||||
{- do IO computations here -}
|
||||
`catch` \ex -> do
|
||||
{- handle exception "ex" here -}
|
||||
4
Task/Exceptions/Haskell/exceptions-5.hs
Normal file
4
Task/Exceptions/Haskell/exceptions-5.hs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
do
|
||||
{- do IO computations here -}
|
||||
`catchDyn` \ex -> do
|
||||
{- handle exception "ex" here -}
|
||||
Loading…
Add table
Add a link
Reference in a new issue