<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I see. That solved that problem, but now I get an error saying:<br>
<br>
Couldn't match expected type `W.Workspace i l a'<br>
against inferred type `W.Screen<br>
WorkspaceId (Layout Window)
Window ScreenId ScreenDetail'<br>
In the first argument of `(:)', namely `W.current ws'<br>
In the second argument of `($)', namely<br>
`W.current ws : W.visible ws'<br>
In the second argument of `notElem', namely<br>
`(map W.tag $ W.current ws : W.visible ws)'<br>
<br>
and also in the line where I use viewHidden:<br>
<br>
Couldn't match expected type `X ()'<br>
against inferred type `W.StackSet WorkspaceId l a s sd<br>
-> W.StackSet WorkspaceId l a s
sd'<br>
Expected type: (WorkspaceId -> X (), t)<br>
Inferred type: (WorkspaceId<br>
-> W.StackSet WorkspaceId l a s sd<br>
-> W.StackSet WorkspaceId l a s sd,<br>
KeyMask)<br>
In the expression: (W.shift, shiftMask)<br>
In the expression: [(viewHidden, 0), (W.shift, shiftMask)]<br>
<br>
I think the second error is probably because of the first, which
seems to be a type mismatch. Is there a quick fix for this?<br>
<br>
Thanks for your help,<br>
Bryan<br>
<br>
<div class="moz-cite-prefix">On 08/02/2012 11:32 AM, Brandon Allbery
wrote:<br>
</div>
<blockquote
cite="mid:CAKFCL4Vmm-F9T9eKnKTAYZhqrjjq3t+xCtTL6TbS=Bb4Jo4uZA@mail.gmail.com"
type="cite">
<div dir="ltr">On Thu, Aug 2, 2012 at 2:20 PM, Bryan Huh <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:bhh1988@gmail.com" target="_blank">bhh1988@gmail.com</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> 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?</div>
</blockquote>
<div><br>
</div>
<div>"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</div>
<div><br>
</div>
<div> import Control.Monad (when)</div>
<div><br>
</div>
<div>up with the other import statements.</div>
<div><br>
</div>
</div>
-- <br>
brandon s allbery <a
moz-do-not-send="true" href="mailto:allbery.b@gmail.com"
target="_blank">allbery.b@gmail.com</a><br>
wandering unix systems administrator (available) (412)
475-9364 vm/sms<br>
<br>
</div>
</blockquote>
<br>
</body>
</html>