[xmonad] How do you test ManageHook using QuickCheck?

Takafumi Arakaki aka.tkf at gmail.com
Mon Feb 6 12:14:18 CET 2012


Thank you Linus,

On Sun, Feb 5, 2012 at 7:00 PM, Linus Arver <linusarver at gmail.com> wrote:
> 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.



More information about the xmonad mailing list