2001-12-17 14:41:34 +0000 <dennisb> you cant use Int and bit manipulation
2001-12-17 14:41:44 +0000 <dennisb> you have to use Int32 or Int16 or something
2001-12-17 14:41:46 +0000 <sjanes71> hmm
2001-12-17 14:41:50 +0000 <sjanes71> ahh.. that's an idea.
2001-12-17 14:42:19 +0000 <sjanes71> That makes sense.
2001-12-17 14:42:47 +0000 <dennisb> The exact size of Int is not known, it's at least 30 bits if I remember, maybe they even use some of the bits for something else
2001-12-17 14:43:14 +0000 <dennisb> (I don't know why it might be 30 bits otherwise)
2001-12-17 14:43:42 +0000 <dennisb> Or maybe the 30 is something I just dreamt, what's real is that you cant use Int!
2001-12-17 14:43:47 +0000 <sjanes71> right
2001-12-17 14:44:22 +0000 <dennisb> then you problably will get some trouble of you mix Int and Int32 but it's easy to convert
2001-12-17 14:44:40 +0000 <sjanes71> aha...
2001-12-17 14:44:51 +0000 <sjanes71> I didn't think to look in Int.hs
2001-12-17 14:45:07 +0000 <dennisb> yes, and there you see that Int32 is an instance of Bits
2001-12-17 14:45:28 +0000 <sjanes71> Excellent.
2001-12-17 14:45:55 +0000 <sjanes71> This little bit of code is probably basically done except for the unittests. :)
2001-12-17 14:46:09 +0000 <dennisb> unittests?
2001-12-17 14:46:23 +0000 <sjanes71> Santity testing of my code.
2001-12-17 14:46:29 +0000 <dennisb> I didn't really read your code, I just looked at it
2001-12-17 14:46:32 +0000 <sjanes71> It's an Extreme Programming thing.
2001-12-17 14:46:34 +0000 <dennisb> Aha, now I understand
2001-12-17 14:46:34 +0000 <shapr> this little bit went to market
2001-12-17 14:46:39 +0000 <shapr> oops
2001-12-17 14:46:40 +0000 <dennisb> yes, i've heard about it
2001-12-17 14:46:43 +0000 <shapr> unittests rock
2001-12-17 14:47:10 +0000 <sjanes71> yes they do.
2001-12-17 14:47:12 +0000 <sjanes71> programming with a net.
2001-12-17 14:47:24 +0000 <dennisb> well, i'm sure it's nice
2001-12-17 14:47:34 +0000 <dennisb> you should take a look at quickcheck then
2001-12-17 14:48:11 +0000 <dennisb> it can generate testcases and check functions against it's logical specification (specified in haskell using som combinators)
2001-12-17 14:48:21 +0000 <sjanes71> hmm
2001-12-17 14:48:23 +0000 <dennisb> s/som/some
2001-12-17 14:48:30 +0000 <shapr> http://haskell.org/wiki/wiki?UnitTesting
2001-12-17 14:48:50 +0000 <shapr> where's quickcheck?
2001-12-17 14:49:14 +0000 <sjanes71> http://www.cs.chalmers.se/~rjmh/QuickCheck/
2001-12-17 14:49:20 +0000 <dennisb> yes