aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Util/Types.hs
blob: 48ffd5408395860b79fc7de9f634425d84cfbdc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{-# LANGUAGE DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module      :  XMonad.Util.Types
-- Copyright   :  (c) Daniel Schoepe (2009)
-- License     :  BSD3-style (see LICENSE)
--
-- Maintainer  :  Daniel Schoepe <daniel.schoepe@gmail.com>
-- Stability   :  unstable
-- Portability :  unportable
--
-- Miscellaneous commonly used types.
--
-----------------------------------------------------------------------------

module XMonad.Util.Types (Direction1D(..)
                         ,Direction2D(..)
                         ) where

import Data.Typeable (Typeable)

-- | One-dimensional directions:
data Direction1D = Next | Prev deriving (Eq,Read,Show,Typeable)

-- | Two-dimensional directions:
data Direction2D = U -- ^ Up
                 | D -- ^ Down
                 | R -- ^ Right
                 | L -- ^ Left
                   deriving (Eq,Read,Show,Ord,Bounded,Typeable)