Use imported `fi' alias for fromIntegral more often.

Also moves `fi' into U.Image to avoid cyclic imports,
though XUtils sill exports that definition.
This commit is contained in:
Adam Vogt
2010-04-16 21:29:39 +00:00
parent d511ffd01a
commit 78f13d2acd
9 changed files with 11 additions and 23 deletions

View File

@@ -29,6 +29,7 @@ import Control.Arrow (second)
import XMonad.Layout.LayoutModifier
import XMonad.Layout.MultiToggle
import XMonad.Util.XUtils (fi)
-- $usage
-- You can use this module by importing it into your @~\/.xmonad\/xmonad.hs@ file:
@@ -85,8 +86,6 @@ reflectRect Horiz (Rectangle sx _ sw _) (Rectangle rx ry rw rh) =
reflectRect Vert (Rectangle _ sy _ sh) (Rectangle rx ry rw rh) =
Rectangle rx (2*sy + fi sh - ry - fi rh) rw rh
fi :: (Integral a, Num b) => a -> b
fi = fromIntegral
data Reflect a = Reflect ReflectDir deriving (Show, Read)