From 98240e03ca298c400d29699293a0cc88de51017d Mon Sep 17 00:00:00 2001 From: Don Stewart Date: Sat, 22 Mar 2008 05:16:54 +0100 Subject: comments darcs-hash:20080322041654-cba2c-a02ffa00d03a515c00ba04f7efd0281982769e22 --- XMonad/Core.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/XMonad/Core.hs b/XMonad/Core.hs index a25b47e..1603034 100644 --- a/XMonad/Core.hs +++ b/XMonad/Core.hs @@ -270,7 +270,8 @@ class Show (layout a) => LayoutClass layout a where -- -- Layouts which do not need access to the 'X' monad to decide how -- to handle messages should implement 'pureMessage' instead of - -- 'handleMessage'. + -- 'handleMessage' (this restricts the risk of error, and makes + -- testing much easier). handleMessage :: layout a -> SomeMessage -> X (Maybe (layout a)) handleMessage l = return . pureMessage l -- cgit v1.2.3