[xmonad] Retrieve number of screens.

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Fri Nov 27 19:23:20 EST 2009

On Nov 27, 2009, at 19:20 , Mike Sampson wrote:
> How do you retrieve the number of screens currently being used. I  
> have tried:
> screenCount :: Int

The type has to be in the X monad; try declaring it as X Int.  (More  
specifically, the error message is telling you that you used a do  
expression, which produces a result in some monad ("m b"), but you  
declared the type as Int.)

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/xmonad/attachments/20091127/141b96fc/PGP.bin

More information about the xmonad mailing list