Use LANGUAGE pragmas over -fglasgow-exts

This commit is contained in:
Spencer Janssen
2007-09-28 18:16:14 +00:00
parent fcd4ef11de
commit de6968d1b4
14 changed files with 29 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.Accordion

View File

@@ -1,3 +1,4 @@
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.Circle

View File

@@ -1,4 +1,6 @@
{-# OPTIONS -fallow-undecidable-instances #-}
{-# OPTIONS_GHC -fallow-undecidable-instances #-}
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.Combo

View File

@@ -1,4 +1,5 @@
{-# OPTIONS_GHC -fglasgow-exts #-}
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.DragPane

View File

@@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fglasgow-exts #-}
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.FlexibleManipulate

View File

@@ -1,4 +1,3 @@
{-# OPTIONS_GHC -fglasgow-exts #-}
-----------------------------------------------------------------------------
-- |
-- 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))
where
(nw, nh) = applySizeHints sh (w + dx, h + dy)
nx :: Rational = fromIntegral (ax * w + nw * (fromIntegral x - ax)) / fromIntegral w
ny :: Rational = fromIntegral (ay * h + nh * (fromIntegral y - ay)) / fromIntegral h
nx :: Rational
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' sh (x,y) (w,h) (dx,dy) (gx, gy) = ((nx, ny), (nw, nh))

View File

@@ -1,3 +1,5 @@
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.LayoutScreens

View File

@@ -1,3 +1,5 @@
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.MagicFocus

View File

@@ -1,3 +1,5 @@
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.Roledex

View File

@@ -1,4 +1,5 @@
{-# OPTIONS -fno-warn-orphans -fglasgow-exts #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.Tabbed

View File

@@ -1,3 +1,5 @@
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.ThreeColumns

View File

@@ -1,3 +1,5 @@
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.TwoPane

View File

@@ -1,4 +1,5 @@
{-# OPTIONS -fglasgow-exts #-}
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.WorkspaceDir

View File

@@ -1,4 +1,5 @@
{-# OPTIONS -fglasgow-exts #-}
{-# LANGUAGE ExistentialQuantification #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonadContrib.XPrompt