From bd82cc91504eb5991dc0006f6f57b50f30b1dba1 Mon Sep 17 00:00:00 2001 From: Adam Vogt Date: Wed, 8 Jun 2011 22:56:13 +0000 Subject: [PATCH] Expose instances to haddock While haddock may have choked on -XGeneralizedNewtypeDeriving before, this is no longer the case. Also this doesn't change the results with a recent haddock (2.9.2) --- XMonad/Core.hs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/XMonad/Core.hs b/XMonad/Core.hs index 46e1a35..765985f 100644 --- a/XMonad/Core.hs +++ b/XMonad/Core.hs @@ -135,9 +135,7 @@ data ScreenDetail = SD { screenRect :: !Rectangle } deriving (Eq,Show, Read) -- 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, Typeable) -#endif instance Applicative X where pure = return @@ -149,9 +147,7 @@ instance (Monoid a) => Monoid (X a) where type ManageHook = Query (Endo WindowSet) newtype Query a = Query (ReaderT Window X a) -#ifndef __HADDOCK__ deriving (Functor, Monad, MonadReader Window, MonadIO) -#endif runQuery :: Query a -> Window -> X a runQuery (Query m) w = runReaderT m w