Task

Write a function to detect a   divide by zero error   without checking if the denominator is zero.




import qualified Control.Exception as C
check x y = C.catch (x `div` y `seq` return False)
                    (\_ -> return True)