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/Gaps.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/Gaps.hs')
-rw-r--r-- | XMonad/Layout/Gaps.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/XMonad/Layout/Gaps.hs b/XMonad/Layout/Gaps.hs index 76dd57c..f672ea5 100644 --- a/XMonad/Layout/Gaps.hs +++ b/XMonad/Layout/Gaps.hs @@ -38,6 +38,7 @@ import Graphics.X11 (Rectangle(..)) import XMonad.Layout.LayoutModifier import XMonad.Util.Types (Direction2D(..)) +import XMonad.Util.XUtils (fi) import Data.List (delete) @@ -133,9 +134,6 @@ toggleGap conf cur d | d `elem` cur = delete d cur incGap :: GapSpec -> Direction2D -> Int -> GapSpec incGap gs d i = map (\(dir,j) -> if dir == d then (dir,max (j+i) 0) else (dir,j)) gs -fi :: (Num b, Integral a) => a -> b -fi = fromIntegral - -- | Add togglable manual gaps to a layout. gaps :: GapSpec -- ^ The gaps to allow, paired with their initial sizes. -> l a -- ^ The layout to modify. |