[Xmonad] darcs patch: make code more compact in XPrompt.

Andrea Rossato mailing_list at istitutocolli.org
Tue Aug 28 02:17:04 EDT 2007

On Mon, Aug 27, 2007 at 03:21:41PM -0400, David Roundy wrote:
> This should definitely not be applied unless it's approved by Andrea.  It's
> a side-effect of my debugging attempt which resulted in the previously-sent
> bug fix for XPrompt.  I compactified the code so I could read it (since I
> can't read what I can't see, so a function that doesn't fit on the screen
> is pretty hard to debug.  But obviously some people like large quantities
> of superfluous space...

Fine with me: please apply.

> +    | ks == xK_Return = do historyPush
> +                           liftIO $ hPutStrLn stderr "Hello world"
> +                           return ()

we can get rid of the debugging bits: I'll send a cosmetic patch to
take of that and other minor code formatting.

Thank you,

BTW: here keyPressHandle - which was 52 lines long - perfectly fit on
the 53 available lines of my 1024x768 laptop.
what about switching to emacs--wathever-no-x11?

More information about the Xmonad mailing list