Skip to content

Commit

Permalink
Replace explicit definition of fi with import from X.Prelude.
Browse files Browse the repository at this point in the history
thanks to @slotThe.
  • Loading branch information
portnov committed Jan 6, 2024
1 parent 0fd50aa commit c5f19e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions XMonad/Layout/DecorationEx/DwmGeometry.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module XMonad.Layout.DecorationEx.DwmGeometry (
) where

import XMonad
import XMonad.Prelude
import qualified XMonad.StackSet as W
import XMonad.Layout.LayoutModifier
import qualified XMonad.Layout.Decoration as D
Expand Down Expand Up @@ -66,9 +67,6 @@ data DwmGeometry a = DwmGeometry {
instance Default (DwmGeometry a) where
def = DwmGeometry False 1 20 200

fi :: (Integral a, Num b) => a -> b
fi = fromIntegral

instance DecorationGeometry DwmGeometry Window where
describeGeometry _ = "DwmStyle"

Expand Down

0 comments on commit c5f19e7

Please sign in to comment.