diff options
author | Adam Vogt <vogt.adam@gmail.com> | 2010-04-16 23:29:39 +0200 |
---|---|---|
committer | Adam Vogt <vogt.adam@gmail.com> | 2010-04-16 23:29:39 +0200 |
commit | c5b25d0fb00ff878886df89842c4a442819a0800 (patch) | |
tree | 983f531785953c66b51d71f0bbd132236961f257 /XMonad/Layout/Reflect.hs | |
parent | 879a7a8dd2e0c9360ed9a90f8bab1f945b265211 (diff) | |
download | XMonadContrib-c5b25d0fb00ff878886df89842c4a442819a0800.tar.gz XMonadContrib-c5b25d0fb00ff878886df89842c4a442819a0800.tar.xz XMonadContrib-c5b25d0fb00ff878886df89842c4a442819a0800.zip |
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
Diffstat (limited to 'XMonad/Layout/Reflect.hs')
-rw-r--r-- | XMonad/Layout/Reflect.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/XMonad/Layout/Reflect.hs b/XMonad/Layout/Reflect.hs index bd127ea..19f6200 100644 --- a/XMonad/Layout/Reflect.hs +++ b/XMonad/Layout/Reflect.hs @@ -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) |