<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5512" name=GENERATOR><LINK 
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}" 
rel=stylesheet></HEAD>
<BODY style="FONT-SIZE: 10pt; MARGIN: 10px; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana size=2>
<DIV>The&nbsp;following&nbsp;code&nbsp;snippets&nbsp;is&nbsp;from&nbsp;xmonad:</DIV>
<DIV></DIV>
<DIV>--&nbsp;Given&nbsp;a&nbsp;window,&nbsp;find&nbsp;the&nbsp;screen&nbsp;it&nbsp;is&nbsp;located&nbsp;on,&nbsp;and&nbsp;compute</DIV>
<DIV>--&nbsp;the&nbsp;geometry&nbsp;of&nbsp;that&nbsp;window&nbsp;wrt.&nbsp;that&nbsp;screen.</DIV>
<DIV>floatLocation&nbsp;::&nbsp;Window&nbsp;-&gt;&nbsp;X&nbsp;(ScreenId,&nbsp;W.RationalRect)</DIV>
<DIV></DIV>
<DIV>--.......</DIV>
<DIV>rr&nbsp;&lt;-&nbsp;snd&nbsp;`fmap`&nbsp;floatLocation&nbsp;w</DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>Prelude&gt;&nbsp;:i&nbsp;fmap</DIV>
<DIV>class&nbsp;Functor&nbsp;f&nbsp;where&nbsp;fmap&nbsp;::&nbsp;(a&nbsp;-&gt;&nbsp;b)&nbsp;-&gt;&nbsp;f&nbsp;a&nbsp;-&gt;&nbsp;f&nbsp;b</DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV>
<DIV>It&nbsp;seems&nbsp;it&nbsp;is&nbsp;different&nbsp;from&nbsp;the&nbsp;definition&nbsp;of&nbsp;fmap&nbsp;?</DIV>
<DIV></DIV>
<DIV>sincerely!</DIV></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Verdana color=#c0c0c0 size=2>2009-05-05 
</FONT></DIV><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>

<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>z_axis</SPAN> 
</FONT></DIV></FONT></BODY></HTML>