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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -