Hello. I have some problem with catching error.
But this code works:Could not deduce (a ~ a1)from the context (Read a)bound by the type signature forreadIOWith :: Read a => a -> String -> IO aat BWClub/Common/Helpers/Packets.hs:(19,1)-(22,33)`a' is a rigid type variable bound bythe type signature for readIOWith :: Read a => a -> String -> IO aat BWClub/Common/Helpers/Packets.hs:19:1`a1' is a rigid type variable bound bythe type signature for errHandler :: SomeException -> IO a1at BWClub/Common/Helpers/Packets.hs:21:11In the first argument of `return', namely `d'In the expression: return dIn an equation for `errHandler': errHandler _ = return d