
Thank you Linus,
On Sun, Feb 5, 2012 at 7:00 PM, Linus Arver
You should separate out the pure computations out of your managehook stuff and then use QuickCheck on those functions. A zero-division error sounds like it's from your own code (if not, then you should contact the maintainer(s) of the libraries in question and send a bug report).
I'd like to see the example of separating "the pure computations out of your managehook stuff and then use QuickCheck on those functions". But I suppose it is possible to test the manage hook as is (w/o separating the pure computation part), or it is not? And yes, the zero-division error is in my management hook. I want to learn Haskell and XMonad is interesting project. That's why I tried to start it by hacking XMonad after quickly reading some Haskell web book.