[xmonad] list of visible workspaces
Brandon Allbery
allbery.b at gmail.com
Thu Aug 2 20:32:33 CEST 2012
On Thu, Aug 2, 2012 at 2:20 PM, Bryan Huh <bhh1988 at gmail.com> wrote:
> I'm sorry if this is a stupid question, but the xmonad.hs doesn't compile
> saying that "when" is out of scope. It seems to not recognize the keyword
> "when." I tried "if" as well but then it tells me there's a parse error.
> Are you sure that what you have compiles for you?
>
"when" isn't a keyword; it's a function defined in Control.Monad.
(Haskell's laziness means that many things that would have to be baked-in
syntax in other languages can be written as functions, and its syntax means
those functions behave as if they *were* baked into the language.) So all
you should need to do is add
import Control.Monad (when)
up with the other import statements.
--
brandon s allbery allbery.b at gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20120802/7765638a/attachment.htm>
More information about the xmonad
mailing list