mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 04:31:52 -07:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user