<!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 following code snippets is from xmonad:</DIV>
<DIV></DIV>
<DIV>-- Given a window, find the screen it is located on, and compute</DIV>
<DIV>-- the geometry of that window wrt. that screen.</DIV>
<DIV>floatLocation :: Window -> X (ScreenId, W.RationalRect)</DIV>
<DIV></DIV>
<DIV>--.......</DIV>
<DIV>rr <- snd `fmap` floatLocation w</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>Prelude> :i fmap</DIV>
<DIV>class Functor f where fmap :: (a -> b) -> f a -> f b</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>It seems it is different from the definition of fmap ?</DIV>
<DIV></DIV>
<DIV>sincerely!</DIV></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </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>