diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-09-28 20:16:14 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-09-28 20:16:14 +0200 |
commit | 084e4883f70987ef74ae63a3c150a061995301d1 (patch) | |
tree | 97b129837434ce6dac79ea16c04bab0c705a7765 | |
parent | 1f5cf9d0ac990d24bd078db3dbd03dda53da00fb (diff) | |
download | XMonadContrib-084e4883f70987ef74ae63a3c150a061995301d1.tar.gz XMonadContrib-084e4883f70987ef74ae63a3c150a061995301d1.tar.xz XMonadContrib-084e4883f70987ef74ae63a3c150a061995301d1.zip |
Use LANGUAGE pragmas over -fglasgow-exts
darcs-hash:20070928181614-a5988-85415ed570690a468bf92cdf0f66d69494cecf4e.gz
-rw-r--r-- | Accordion.hs | 2 | ||||
-rw-r--r-- | Circle.hs | 1 | ||||
-rw-r--r-- | Combo.hs | 4 | ||||
-rw-r--r-- | DragPane.hs | 3 | ||||
-rw-r--r-- | FlexibleManipulate.hs | 2 | ||||
-rw-r--r-- | FloatKeys.hs | 7 | ||||
-rw-r--r-- | LayoutScreens.hs | 2 | ||||
-rw-r--r-- | MagicFocus.hs | 2 | ||||
-rw-r--r-- | Roledex.hs | 2 | ||||
-rw-r--r-- | Tabbed.hs | 3 | ||||
-rw-r--r-- | ThreeColumns.hs | 2 | ||||
-rw-r--r-- | TwoPane.hs | 2 | ||||
-rw-r--r-- | WorkspaceDir.hs | 3 | ||||
-rw-r--r-- | XPrompt.hs | 3 |
14 files changed, 29 insertions, 9 deletions
diff --git a/Accordion.hs b/Accordion.hs index 72f9d13..91dc8f1 100644 --- a/Accordion.hs +++ b/Accordion.hs @@ -1,3 +1,5 @@ +{-# LANGUAGE FlexibleInstances #-} + ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.Accordion @@ -1,3 +1,4 @@ +{-# LANGUAGE FlexibleInstances #-} ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.Circle @@ -1,4 +1,6 @@ -{-# OPTIONS -fallow-undecidable-instances #-} +{-# OPTIONS_GHC -fallow-undecidable-instances #-} +{-# LANGUAGE FlexibleInstances #-} + ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.Combo diff --git a/DragPane.hs b/DragPane.hs index fcf4d99..329a60c 100644 --- a/DragPane.hs +++ b/DragPane.hs @@ -1,4 +1,5 @@ -{-# OPTIONS_GHC -fglasgow-exts #-} +{-# LANGUAGE FlexibleInstances #-} + ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.DragPane diff --git a/FlexibleManipulate.hs b/FlexibleManipulate.hs index cdf209e..bf340b1 100644 --- a/FlexibleManipulate.hs +++ b/FlexibleManipulate.hs @@ -1,4 +1,4 @@ -{-# OPTIONS_GHC -fglasgow-exts #-} +{-# LANGUAGE FlexibleInstances #-} ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.FlexibleManipulate diff --git a/FloatKeys.hs b/FloatKeys.hs index 79d236f..5ea5e11 100644 --- a/FloatKeys.hs +++ b/FloatKeys.hs @@ -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)) diff --git a/LayoutScreens.hs b/LayoutScreens.hs index c3de2ba..7e97a66 100644 --- a/LayoutScreens.hs +++ b/LayoutScreens.hs @@ -1,3 +1,5 @@ +{-# LANGUAGE FlexibleInstances #-} + ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.LayoutScreens diff --git a/MagicFocus.hs b/MagicFocus.hs index 0f7230b..44a6c09 100644 --- a/MagicFocus.hs +++ b/MagicFocus.hs @@ -1,3 +1,5 @@ +{-# LANGUAGE FlexibleInstances #-} + ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.MagicFocus @@ -1,3 +1,5 @@ +{-# LANGUAGE FlexibleInstances #-} + ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.Roledex @@ -1,4 +1,5 @@ -{-# OPTIONS -fno-warn-orphans -fglasgow-exts #-} +{-# OPTIONS_GHC -fno-warn-orphans #-} +{-# LANGUAGE FlexibleInstances #-} ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.Tabbed diff --git a/ThreeColumns.hs b/ThreeColumns.hs index 66862c3..334691b 100644 --- a/ThreeColumns.hs +++ b/ThreeColumns.hs @@ -1,3 +1,5 @@ +{-# LANGUAGE FlexibleInstances #-} + ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.ThreeColumns @@ -1,3 +1,5 @@ +{-# LANGUAGE FlexibleInstances #-} + ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.TwoPane diff --git a/WorkspaceDir.hs b/WorkspaceDir.hs index 1570c46..603572f 100644 --- a/WorkspaceDir.hs +++ b/WorkspaceDir.hs @@ -1,4 +1,5 @@ -{-# OPTIONS -fglasgow-exts #-} +{-# LANGUAGE FlexibleInstances #-} + ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.WorkspaceDir @@ -1,4 +1,5 @@ -{-# OPTIONS -fglasgow-exts #-} +{-# LANGUAGE ExistentialQuantification #-} + ----------------------------------------------------------------------------- -- | -- Module : XMonadContrib.XPrompt |