diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-12-08 02:50:15 +0100 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-12-08 02:50:15 +0100 |
commit | 2e958daf778f9547dd0c759acdf75d8a9b1fdf27 (patch) | |
tree | ff8d9b70260b16a3e3982fc7b23b32d7d7f058bd | |
parent | 260ceb4b6dceff824d0b155979309a11e6ef08b5 (diff) | |
download | xmonad-2e958daf778f9547dd0c759acdf75d8a9b1fdf27.tar.gz xmonad-2e958daf778f9547dd0c759acdf75d8a9b1fdf27.tar.xz xmonad-2e958daf778f9547dd0c759acdf75d8a9b1fdf27.zip |
Hide generalized newtype deriving from Haddock
darcs-hash:20071208015015-a5988-71859e01140da3ecdacddab8f37f789fa495d9c8.gz
-rw-r--r-- | XMonad/Core.hs | 7 | ||||
-rw-r--r-- | xmonad.cabal | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/XMonad/Core.hs b/XMonad/Core.hs index fc7040f..4e60c79 100644 --- a/XMonad/Core.hs +++ b/XMonad/Core.hs @@ -116,14 +116,19 @@ data ScreenDetail = SD { screenRect :: !Rectangle -- instantiated on XConf and XState automatically. -- newtype X a = X (ReaderT XConf (StateT XState IO) a) +#ifndef __HADDOCK__ deriving (Functor, Monad, MonadIO, MonadState XState, MonadReader XConf) +#endif instance (Monoid a) => Monoid (X a) where mempty = return mempty mappend = liftM2 mappend type ManageHook = Query (Endo WindowSet) -newtype Query a = Query (ReaderT Window X a) deriving (Functor, Monad, MonadReader Window, MonadIO) +newtype Query a = Query (ReaderT Window X a) +#ifndef __HADDOCK__ + deriving (Functor, Monad, MonadReader Window, MonadIO) +#endif runManageHook :: ManageHook -> Window -> X (WindowSet -> WindowSet) runManageHook (Query m) w = appEndo <$> runReaderT m w diff --git a/xmonad.cabal b/xmonad.cabal index c7e0e40..568ad94 100644 --- a/xmonad.cabal +++ b/xmonad.cabal @@ -43,6 +43,7 @@ library ghc-options: -funbox-strict-fields -Wall -Werror -optl-Wl,-s ghc-prof-options: -prof -auto-all + extensions: CPP executable xmonad main-is: Main.hs @@ -51,3 +52,4 @@ executable xmonad ghc-options: -funbox-strict-fields -Wall -Werror -optl-Wl,-s ghc-prof-options: -prof -auto-all + extensions: CPP |