[Haskell-cafe] Instance classes and error (also, related to Data.Binary.GET)

2008-01-03 Thread bbrown
I am using the Data.Binary module and having some issues reading big endian files (actually, just reading the file). I can read the header but not the rest of the data which contains a set of row information. Also, go ahead and make fun my style of coding. Anyway, This is the my code and the

Re: [Haskell-cafe] Instance classes and error (also, related to Data.Binary.GET)

2008-01-03 Thread Daniel Fischer
I've no experience with Data.Binary, but I noticed you declared instance Binary YourType where... and the compiler says instance Binary (Get YourType) is missing. That might be worth looking into. Cheers, Daniel Am Freitag, 4. Januar 2008 00:13 schrieb bbrown: I am using the Data.Binary

Re: [Haskell-cafe] Instance classes and error (also, related to Data.Binary.GET)

2008-01-03 Thread Brandon S. Allbery KF8NH
On Jan 3, 2008, at 18:13 , bbrown wrote: DbReader.hs:119:22: No instance for (Binary (Get URLInfo)) arising from a use of `decode' at DbReader.hs:119:22-45 Without looking more closely, this suggests to me that you have mismatched or incorrectly encapsulated monads (for example,

Re: [Haskell-cafe] Instance classes and error (also, related to Data.Binary.GET)

2008-01-03 Thread Clive Brettingham-Moore
Like the previous no experience with Data.Binary, but my (rusty) monad experience is enough to see the source of the problem: bbrown wrote: The issue stems from here, it says I didn't define an instance, but I did: instance Binary URLSet where put _ = do BinaryPut.putWord8 0 get = do