mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 12:11:52 -07:00
New module: XMonad.Prelude
This is a convenience module in order to have less import noise. It re-exports the following: a) Commonly used modules in full (Data.Foldable, Data.Applicative, and so on); though only those that play nicely with each other, so that XMonad.Prelude can be imported unqualified without any problems. This prevents things like `Prelude.(.)` and `Control.Category.(.)` fighting with each other. b) Helper functions that don't necessarily fit in any other module; e.g., the often used abbreviation `fi = fromIntegral`.
This commit is contained in:
@@ -35,12 +35,11 @@ module XMonad.Layout.ZoomRow ( -- * Usage
|
||||
) where
|
||||
|
||||
import XMonad
|
||||
import XMonad.Prelude (fromMaybe, fi)
|
||||
import qualified XMonad.StackSet as W
|
||||
|
||||
import XMonad.Util.Stack
|
||||
import XMonad.Layout.Decoration (fi)
|
||||
|
||||
import Data.Maybe (fromMaybe)
|
||||
import Control.Arrow (second)
|
||||
|
||||
-- $usage
|
||||
@@ -255,4 +254,4 @@ instance (EQF f a, Show a, Read a, Show (f a), Read (f a), Typeable f)
|
||||
$ SomeMessage $ ZoomFull $ not b
|
||||
_ -> Nothing
|
||||
|
||||
pureMessage _ _ = Nothing
|
||||
pureMessage _ _ = Nothing
|
||||
|
Reference in New Issue
Block a user