From 980b7178e7c1aac51d70003cc5d5ce4168f51715 Mon Sep 17 00:00:00 2001 From: David Roundy Date: Thu, 18 Oct 2007 22:26:04 +0200 Subject: default to empty description for layout modifiers. This is because modifierDescription is designed to be human-readable, and show rarely creates a human-readable description. And in many (if not most) cases, an empty description is precisely what we want. darcs-hash:20071018202604-72aca-6da6f02e804c95da4cbccae205f83217333f7c96.gz --- LayoutModifier.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LayoutModifier.hs') diff --git a/LayoutModifier.hs b/LayoutModifier.hs index 22a97c0..88eed93 100644 --- a/LayoutModifier.hs +++ b/LayoutModifier.hs @@ -42,7 +42,7 @@ class (Show (m a), Read (m a)) => LayoutModifier m a where unhook :: m a -> X () unhook _ = return () modifierDescription :: m a -> String - modifierDescription = show + modifierDescription = const "" instance (LayoutModifier m a, LayoutClass l a) => LayoutClass (ModifiedLayout m l) a where doLayout (ModifiedLayout m l) r s = -- cgit v1.2.3