[Xmonad] darcs patch: fix potential hole in userCode.

Stefan O'Rear stefanor at cox.net
Fri Oct 12 23:19:13 EDT 2007

On Fri, Oct 12, 2007 at 08:15:52PM -0700, Stefan O'Rear wrote:
> The main issue is:
> modify (\x -> posionWithBottoms x)
> That will not fail immediatly, but will cripple xmonad by causing all
> commands that read the state to fail, including mod-q.  Your only choice
> is to quit xmonad wholesale.
> My proposal (shared, I believe, with sjanssen) is "fail early, fail
> often, and force the people who commit bugs to wear imaginary dunce
> caps".

Another option is to deepseq the state after every command.  (That bugs
like this exist in the first place is IMO a serious failing of lazy
languages; where's SML-with-qualified-types-and-good-syntax when you
need it? *grin*)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/xmonad/attachments/20071012/a0628fea/attachment.bin

More information about the Xmonad mailing list