mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-06 23:11:54 -07:00
Use LANGUAGE pragmas over -fglasgow-exts
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.Accordion
|
-- Module : XMonadContrib.Accordion
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.Circle
|
-- Module : XMonadContrib.Circle
|
||||||
|
4
Combo.hs
4
Combo.hs
@@ -1,4 +1,6 @@
|
|||||||
{-# OPTIONS -fallow-undecidable-instances #-}
|
{-# OPTIONS_GHC -fallow-undecidable-instances #-}
|
||||||
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.Combo
|
-- Module : XMonadContrib.Combo
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
{-# OPTIONS_GHC -fglasgow-exts #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.DragPane
|
-- Module : XMonadContrib.DragPane
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{-# OPTIONS_GHC -fglasgow-exts #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.FlexibleManipulate
|
-- Module : XMonadContrib.FlexibleManipulate
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
{-# OPTIONS_GHC -fglasgow-exts #-}
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.FloatKeys
|
-- Module : XMonadContrib.FloatKeys
|
||||||
@@ -87,8 +86,10 @@ keysAbsResizeWindow' :: SizeHints -> P -> D -> D -> D -> (P,D)
|
|||||||
keysAbsResizeWindow' sh (x,y) (w,h) (dx,dy) (ax, ay) = ((round nx, round ny), (nw, nh))
|
keysAbsResizeWindow' sh (x,y) (w,h) (dx,dy) (ax, ay) = ((round nx, round ny), (nw, nh))
|
||||||
where
|
where
|
||||||
(nw, nh) = applySizeHints sh (w + dx, h + dy)
|
(nw, nh) = applySizeHints sh (w + dx, h + dy)
|
||||||
nx :: Rational = fromIntegral (ax * w + nw * (fromIntegral x - ax)) / fromIntegral w
|
nx :: Rational
|
||||||
ny :: Rational = fromIntegral (ay * h + nh * (fromIntegral y - ay)) / fromIntegral h
|
nx = fromIntegral (ax * w + nw * (fromIntegral x - ax)) / fromIntegral w
|
||||||
|
ny :: Rational
|
||||||
|
ny = fromIntegral (ay * h + nh * (fromIntegral y - ay)) / fromIntegral h
|
||||||
|
|
||||||
keysResizeWindow' :: SizeHints -> P -> D -> D -> G -> (P,D)
|
keysResizeWindow' :: SizeHints -> P -> D -> D -> G -> (P,D)
|
||||||
keysResizeWindow' sh (x,y) (w,h) (dx,dy) (gx, gy) = ((nx, ny), (nw, nh))
|
keysResizeWindow' sh (x,y) (w,h) (dx,dy) (gx, gy) = ((nx, ny), (nw, nh))
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.LayoutScreens
|
-- Module : XMonadContrib.LayoutScreens
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.MagicFocus
|
-- Module : XMonadContrib.MagicFocus
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.Roledex
|
-- Module : XMonadContrib.Roledex
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
{-# OPTIONS -fno-warn-orphans -fglasgow-exts #-}
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||||
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.Tabbed
|
-- Module : XMonadContrib.Tabbed
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.ThreeColumns
|
-- Module : XMonadContrib.ThreeColumns
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.TwoPane
|
-- Module : XMonadContrib.TwoPane
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
{-# OPTIONS -fglasgow-exts #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.WorkspaceDir
|
-- Module : XMonadContrib.WorkspaceDir
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
{-# OPTIONS -fglasgow-exts #-}
|
{-# LANGUAGE ExistentialQuantification #-}
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.XPrompt
|
-- Module : XMonadContrib.XPrompt
|
||||||
|
Reference in New Issue
Block a user