[Haskell-cafe] Re: QuickCheck: test passes in GHCi, fails when compiled

2010-01-13 Thread Lauri Pesonen
2010/1/13 Lauri Pesonen : > I provided a Java solution to a problem of returning the first digit > of an integer on StackOverflow and someone wondered if there were any > floating point point problems with the solution, so I though I'd > implement the algorithm in Haskell and run

[Haskell-cafe] QuickCheck: test passes in GHCi, fails when compiled

2010-01-13 Thread Lauri Pesonen
I provided a Java solution to a problem of returning the first digit of an integer on StackOverflow and someone wondered if there were any floating point point problems with the solution, so I though I'd implement the algorithm in Haskell and run QuickCheck on it. Everything works fine on GHCi, but

Re: [Haskell-cafe] Data.Binary questions

2008-01-21 Thread Lauri Pesonen
Hi Derek, Thanks for the reply. On 20/01/2008, Derek Elkins <[EMAIL PROTECTED]> wrote: > You may want to consider using the other side of Data.Binary rather than > the Binary class. The -class- Binary is intended for de/serialization > when you don't care about the format. From the documentati

[Haskell-cafe] Data.Binary questions

2008-01-20 Thread Lauri Pesonen
Hi, I'm relatively new to Haskell so please bear with me. I'm trying to parse Java class files with Data.Binary and I'm having a few problems: (The class file format is described here: http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html and the bytecode instructions are des