From c5b25d0fb00ff878886df89842c4a442819a0800 Mon Sep 17 00:00:00 2001 From: Adam Vogt Date: Fri, 16 Apr 2010 23:29:39 +0200 Subject: Use imported `fi' alias for fromIntegral more often. Ignore-this: 51040e693066fd7803cc1b108c1a13d5 Also moves `fi' into U.Image to avoid cyclic imports, though XUtils sill exports that definition. darcs-hash:20100416212939-1499c-a12428074d873b1eaea197e1b79c0ca07a96b05f.gz --- XMonad/Util/Image.hs | 5 ++++- XMonad/Util/XUtils.hs | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'XMonad/Util') diff --git a/XMonad/Util/Image.hs b/XMonad/Util/Image.hs index 92ef76c..472586f 100644 --- a/XMonad/Util/Image.hs +++ b/XMonad/Util/Image.hs @@ -17,7 +17,9 @@ module XMonad.Util.Image -- $usage Placement(..), iconPosition, - drawIcon + drawIcon, + + fi, ) where import XMonad @@ -86,6 +88,7 @@ drawIcon dpy drw gc fc bc x y icon = do io $ setForeground dpy gc fcolor io $ drawPoints dpy drw gc (movePoints x y (iconToPoints icon)) coordModeOrigin + -- | Short-hand for 'fromIntegral' fi :: (Integral a, Num b) => a -> b fi = fromIntegral diff --git a/XMonad/Util/XUtils.hs b/XMonad/Util/XUtils.hs index acc4558..8ea3653 100644 --- a/XMonad/Util/XUtils.hs +++ b/XMonad/Util/XUtils.hs @@ -204,6 +204,3 @@ mkWindow d s rw x y w h p o = do createWindow d rw x y w h 0 (defaultDepthOfScreen s) inputOutput visual attrmask attributes --- | Short-hand for 'fromIntegral' -fi :: (Integral a, Num b) => a -> b -fi = fromIntegral -- cgit v1.2.3