Haskell: Catching exceptions from Data.Binary.Get -
I have received the following code:
Import data. Binary L importable control as L. Exposure as X = Mainly = L. Pack [1,2,3,4] E.catch (E.evaluate $ runGet getWord32be dat) (\ _ -> return 0) (return 1) putStrLn "Done" I get the following error:
Expected type `m1t - & gt; Io GHC against the 'estimated type' MA Ford Word 32 'Ek' Doo Express' in an STMT: E.Kech (E.Alvite $ Rangergate Virus 32 BA DAT) (\ _ - & gt; Return 0) (return 1) < P> But I can not understand what is mismatched, can anyone illuminate?
Hold only two arguments you are giving it three.
Comments
Post a Comment