Re: [Haskell-cafe] propogation of Error

2008-12-05 Thread Daniel GorĂ­n
i would expect to get back the Error from the *first* function in the sequence of functions in checkHeader (oggHeaderError from the oggHeader function). but instead i always see the Error from the *last* function in the sequence, OggPacketFlagError from the OggPacketFlag function. why is

[Haskell-cafe] propogation of Error

2008-12-04 Thread brad clawsie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi. i have a partial library for parsing ogg files here: http://hpaste.org/12705 i have a question about an aspect of the code. in the function checkHeader there are a sequence of functions to check various elements in the header of a ogg file.